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)

using System;
using System.Collections.Generic;
using System.Text;


namespace ConsoleApplication6
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            int n = int.Parse(s);

            int h = n / 3600;
            int m = (n - h * 3600) / 60;
            int s2 = n % 60;

            Console.WriteLine(h + ":" + m + ":" + s2);
            ////??\??????????????????????????????
            //string a = Console.ReadLine();
            
            //int n = int.Parse(a);


            //int[] s = new int[13];
            //int[] h = new int[13];
            //int[] c = new int[13];
            //int[] d = new int[13];

            ////???????????§??°?????????
            //for (int i = 0; i < n; i++)
            //{
            //    //??????????????????????????????
            //    string[] ss = Console.ReadLine().Split(' ');
            //    //ss[0]???mark???
            //    string mark = ss[0];
            //    //ss[1]???rank???
            //    int rank = int.Parse(ss[1]);

            //    //??????mark???????????£?????? s[rank - 1]????????¨??????
                
            //    if (mark == "S")
            //    {
            //        s[rank - 1] = 1;
            //    }
            //    //??????mark???????????£?????? h[rank - 1]????????¨??????
                
            //    if (mark == "H")
            //    {
            //        h[rank - 1] = 1;

            //    }
            //    //??????mark???????????£?????? c[rank - 1]????????¨??????
                
            //    if (mark == "C")
            //    {
            //        c[rank - 1] = 1;

            //    }
            //    //??????mark???????????£?????? d[rank - 1]????????¨??????
            //    if (mark == "D")
            //    {
            //        d[rank - 1] = 1;
            //    }
            //}
            ////0?????????????????§??°?????????????????§????????£??????S??¨one+1?????????
            //for (int one = 0; one < 13; one++) 
            //{
            //    if (s[one] != 1)
            //    {
            //        Console.WriteLine("S "+(one+1));
            //    }

            //}
            ////0?????????????????§??°?????????????????§????????£??????S??¨two+1?????????
            //for (int two = 0; two < 13; two++)
            //{
            //    if (h[two] != 1)
            //    {
            //        Console.WriteLine("H " +(two+1));
            //    }
            //}
            ////0?????????????????§??°?????????????????§????????£??????S??¨three+1?????????
            //for (int three = 0; three < 13; three++)
            //{
            //    if (c[three] != 1)
            //    {
            //        Console.WriteLine("C " + (three+1));
            //    }
            //}
            ////0?????????????????§??°?????????????????§????????£??????S??¨four+1?????????
            //for (int four = 0; four < 13; four++)
            //{
            //    if (d[four] != 1)
            //    {
            //        Console.WriteLine("D " + (four+1));
            //    }
            //}


        }
    }
}