#00009A

z-clock

You are given current time as a number of seconds sec. Suppose that the time is shown on a clock with hands for hours and minutes. You should find out the next time, (represented as seconds with 3 decimals), when the hour and minute hands will overlap.


InputStandard input will contain sec (0 <= sec <= 43199) that represents the current time in seconds.

OutputOn standard ouput you should print out the time in seconds when hands will overlap next time. The time should be printed with 3 decimals.

Input:
0
Output:
3927.273

Input:
43199
Output:
43200.000

Submit solution

Coming later

The grading service will be connected in a later migration step. You can inspect the task and your previous results now.