def main(): l: int = int(input()) n: int = int(input()) _ = input().split() ans = 2 ** (l - 3) * n print(ans) if __name__ == "__main__": main()