print((function (f, l, n) return f(l, n) end)(function (l, n) return 2^(l-3) * n end, io.stdin:read("*n"), io.stdin:read("*n")))