#!/bin/python3 import sys def countArray(n, k, x): return (2^(k-1)-1) # Return the number of ways to fill in the array. if __name__ == "__main__": n, k, x = input().strip().split(' ') n, k, x = [int(n), int(k), int(x)] answer = countArray(n, k, x) print(answer)