is preparing for Christmas by spreading joy and festivities to all his friends. To do this, he will make an advent calendar for the coming Christmas. wants to make his advent calendar special, so he plans to make it as long as the number of days until the soonest Christmas. needs to buy materials for his calendar, and wants to know how many days long his calendar should be. Can you help him out?
is also feeling very generous and bought you a book about leap years for Christmas. It reads:
A non-leap year is a called a common year. A year is a common year if:
- It is not divisible by 4.
- It is divisible by 100 and not by 400.
- All other years are leap years.
The first line will contain 3 integers in the format
[year] [month] [date], today's date. The year will be a positive integer between ~1000~ and ~3000~, inclusive.
The number of days until Christmas.
Subtask 1 [30%]
The advent calendar will not include leap years.
Subtask 2 [70%]
No further constraints.
2021 02 14