Little girl Kristina came to visit her grandmother and saw antique mechanical clock with two hands on the dial — hour and minute. The clock was working properly, and the movement of the hands of such clocks is continuous (not discrete), that is, for example, in 1 minute the minute hand moves uniformly by 6 degrees, and the hour hand — by 0.5 degrees. At the moment of observation, the clock showed exactly h hours, m minutes, 0 seconds (that is, the minute hand pointed exactly to the mark of m minutes on the dial). For example, the clock in the picture below shows 8 hours 23 minutes and 0 seconds.
Kristina became interested in what is the nearest moment in time when the clock readings will be such that the minimum angle between the hands will be exactly k degrees. But since she is still little, you will have to help her solve this problem.
The input consists of a single line containing three integers h, m, and k ($$$0 \le h \le 11$$$, $$$0 \le m \le 59$$$, $$$0 \le k \le 180$$$).
We will assume that the clock shows time from 0 hours 0 minutes to 11 hours 59 minutes. After 11:59, it is 0:00 again.
Output three integers in a single line — hours, minutes, and seconds of the required moment in time. If necessary, round the time down to the nearest integer number of seconds.
6 30 90
6 49 5
| Name |
|---|


