l = int(input()) n = int(input()) s = input() print(n * pow(2, l - 3))