# No.530 年齢って毎年変わるし覚えるの難しいよね print(2017 - int(input()))