Time Limit : sec, Memory Limit : KB
English / Japanese  

Angle Conversion

Normally, angles are expressed in degrees, but if you want to express angles smaller than 1 degree, you can use minutes or seconds. 1 degree in minutes is 60 minutes, and 1 minute in seconds is 60 seconds. For example, 10.52 degrees expressed in seconds is 37,872 seconds, and 10 degrees, 31 minutes, and 12 seconds expressed in degrees, minutes, and seconds.

Write a program that reads angles in seconds and converts them into degrees, minutes, and seconds. Degrees are integers greater than or equal to 0, and minutes and seconds are integers between 0 and 59.

Input

Input is given in the following form.

$d$

An angle $d$ ($0 \leq d \leq 648,000$) expressed in seconds is given as an integer in a line.

Output

Output degrees, minutes, and seconds of the angle expressed in degrees, minutes, and seconds in a line, separated by spaces.

Sample Input and Output

Sample Input 1

37872

Sample Output 1

10 31 12

Sample Input 2

503784

Sample Output 2

139 56 24

Sample Input 3

0

Sample Output 3

0 0 0