Problem of Problems

Evan/Ninjaclashette is in terrible need of easy problems for MLE which is unfortunately not on this site >:(. He( or she :eyes:) wants to make n number of problems before a certain deadline which is any time from 1:01 December 23, 2019 to 23:59 December 23, 2019.

Since he is making so much questions, he wants to plan out how much time he wants to spend making each problem. Therefore, he asked you, just because you’re totally trash at programming, to make a program to help him plan.


Input Specification


The first line will contain N (1 <= N <= 10000), the number of problems.

The second line will contain the time now. (It is certain the time is on December 23rd, 2019)

The third line will contain the deadline.


Output Specification


Print the number of seconds he needs to spend on each problem, to the nearest thousandth.


Sample Input


2
12:00 December 23 2019
12:10 December 23 2019


Sample Output


300.000
Comments
  • There are no comments.