L = int(raw_input()) N = int(raw_input()) DNA = raw_input().split() print (2 ** (L - 3)) * N