H,W=map(int,input().split()) n=H f=[1,2] while f[-1]*2+f[-2]