Number of days since the beginning of the era#5055

Number of days since the beginning of the era

1 second
64 megabytes
Easy

Calculate the number of days from the beginning of the era up to and including the specified date. The era starts on January of year one.

Input

The input contains a single line with a date in the format DDMMYYYY.

Output

Output the required number of days.

Examples

Example 1

Loading
Loading