Two trains
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Two trains leave different cities heading toward each other at the same time and meet in t hours. During the next t[1]
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 t[1]
(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.
Examples
Input #1
Answer #1
Submissions 4K
Acceptance rate 45%