##yuki_175 l=int(raw_input()) n=int(raw_input()) s=[] s=raw_input().split() print (2**(l-3))*len(s)