Easymath
Seconds to H M S
Time limit 2 s · Memory 64 MBAcceptance: —Solved by: 0
Statement
You are given t, the number of seconds passed since midnight. Print three numbers on one line separated by spaces: hours, minutes and seconds. For example, 3661 seconds is 1 hour 1 minute 1 second.
Examples
Example 1
Input
3661
Output
1 1 1
Example 2
Input
59
Output
0 0 59
Constraints
- 0 ≤ t < 86400