l = list(input().split())[1] if l=='?': print(14) elif l=='2': print(4) else: print(1)