#P300. 练50.3 日记第几天

练50.3 日记第几天

Description

Xiaoming writes a diary every day. One day, he suddenly wondered how many diary entries he had written this year. Counting them one by one would be too tedious, so he decided to leave this difficult problem for you to solve.

Input Format

Input three integers yy, mm, and dd representing the year, month, and day respectively. All data are within the int range.

Output Format

Output a single integer representing the day of the year.

Sample

2018 1 1
1