#28933: Python一行解


ycchang9 (ching)


print(int(input()) - 1911)