print((b' 3    '[int(eval(input()))%14]))
print(ord(' 3    '[eval(input())%14]))
print((b" 3    "[int(eval(input())) % 14]))

print(ord(" 3    "[eval(input()) % 14]))

-print((b" 3    "[int(eval(input())) % 14])) +print(ord(" 3    "[eval(input()) % 14]))