#25999: python 直觀解


www.abc35938454@gmail.com (閃電a)


s = [x for x in range(24)]

print(s[int(input())-15])