# -*- coding: utf-8 -*- L = input() N = input() dum = raw_input() n = L -3 print 2 ** n * N