# -*- coding: utf-8 -*- from datetime import datetime # 1. 入力情報取得. Y = int(input()) # 2. 年齢は? # Pythonic difference between two dates in years? # https://stackoverflow.com/questions/4436957/pythonic-difference-between-two-dates-in-years date2 = datetime(2017, 6, 23, 0, 0) date1 = datetime(Y, 1, 1, 0, 0) delta = date2 - date1 ans = int((delta.days + delta.seconds/86400)/365.2425) # 3. 出力. print(ans)