l = int(input()) n = int(input()) S = list(map(str, input().split())) ans = n*2**(l-3) print(ans)