import datetime year,month,day = input().split(' ') day = datetime.datetime(int(year), int(month), int(day)) - datetime.datetime(int(year), 1, 1) print(day.days+1) datetime真好用