eolymp
bolt
Try our new interface for solving problems
Problems

Two trains

Two trains

Two trains leave different cities heading toward each other at the same time and meet in t hours. During the next t1 hours the first train arrive to the place where from the second train started. In what time the second train will arrive at the point from which the first train started.

Input

Two nonnegative integers t and t1 (no more than 24).

Output

Print the time when the second train will arrive to the place where the first train started in hours and minutes format.

Time limit 1 second
Memory limit 128 MiB
Input example #1
4 3
Output example #1
5 20