present = 2017 born = int(input()) age = present - born print(age)