cho.sh
Notes
Loading...

Year Progress Bar

Time limit

2s

Memory limit

128 MB

Problem

Moonbing likes the New Year, but the next New Year is still far away. Even so, Moonbing keeps waiting for it.

One day, Moonbing woke up and wondered, "How much of this year has passed so far?"

To answer that question, Moonbing decided to make a simple application that shows the progress of the current year as a percentage.

Given the current date and time, write a program that prints what percentage of the current year has passed.

Input

The first line gives the date and time in the format Month DD, YYYY HH:MM. Month is the English name of the current month, and YYYY is the four-digit year. DD, HH, and MM are two-digit numbers representing the current day, hour, and minute.

Month is one of January, February, March, April, May, June, July, August, September, October, November, and December. The year is between 1800 and 2600, inclusive. The input is always a valid date and time.

Output

Print, on the first line, the percentage of the current year that has passed. An absolute or relative error of at most 10^-9 is accepted.

Hint

In a common year, the months have 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, and 31 days, respectively. In a leap year, February has 29 days.

A year is a leap year if it is divisible by 400, or if it is divisible by 4 but not by 100. Daylight saving time for local regions is not considered.