#25517: python3


qqq123456 (suiyu)


python3 AC

a = 1911
s = int(input())
d = s - a
print(d)