Problem:
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});

Watch

Write a program which reads an integer $S$ [second] and converts it to $h:m:s$ where $h$, $m$, $s$ denote hours, minutes (less than 60) and seconds (less than 60) respectively.

Input

An integer $S$ is given in a line.

Output

Print $h$, $m$ and $s$ separated by ':'. You do not need to put '0' for a value, which consists of a digit.

Constraints

$0 \leq S \leq 86400$

Sample Input 1

46979

Sample Output 1

13:2:59

Solution in C# (judge verdict: Accepted)

//秒単位の時間 S が与えられるので、h:m:s の形式へ変換して出力してください。ここで、h は時間、m は 60 未満の分、s は 60 未満の秒とします。

using System;

class Program
{
    static void Main()
    {
        const int secPerHour = 3600;
        const int secPerMinute = 60;
        var x = int.Parse(Console.ReadLine());
        int H = x / secPerHour;
        int M = (x - H * secPerHour) / secPerMinute;
        int S = x - (H * secPerHour + M * secPerMinute);
        Console.WriteLine("{0}:{1}:{2}", H, M, S);
    }
}