a = int(input()) b = int(input()) txt = input() print((2**(a-3)) * b)