# coding=utf-8 list = input().split() print(list[1]) if list[1] == '?': print('14') elif list[1] == '2': print('4') else: print('1')