#27476: python簡易解答


carter921105@gmail.com (Ted Carter)


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