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