a,b,c=input().split() if b==2: print(4) elif b==3: print(1) else: print(14)