def main(): L, N = (int(input()) for _ in [0] * 2) S = tuple(input().split()) ans = 2 ** (L - 3) * N print(ans) main()