# coding: utf-8 # Your code here! c = input().rstrip().split() if c[1] == '?': print('14') elif c[1] == '2': print('4') elif c[1] == '3': print('1') ''' ['?', '2', '3'] => 4 ['?', '3', '2'] => 1 ['2', '?', '3'] => 14 ['3', '?', '2'] => 14 ['2', '3', '?'] => 1 ['3', '2', '?'] => 4] '''