# -*- coding:utf-8 -*- import sys if __name__ == "__main__": n = input() m = input() l = raw_input().split() print 2 ** (n-3) * m