#35737: 中華民國萬歲!


108081a1@gm.chihlee.edu.tw (何姿儀)


y = int(input())
y = y - 1911
print(y)