l = int(input()) n = int(input()) s = input().split() print((1 << (l - 3)) * n)