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 JAVA (judge verdict: Accepted)

import java.util.Scanner;	//Scannerクラス：Java標準入力を取得する

class Main{	//秒数を入力して時間：分：秒の形式に変換し、出力する
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {	//Scanerクラスを変数scで使えるようにする
            int secs = sc.nextInt();		//秒数を入力
            int hh = secs / (60 * 60);		//時間単位に換算
            int hs = secs % (60 * 60);		//あまりの秒数を算出
            int mm = hs / 60;				//分単位に換算
            int ss = hs % 60;				//あまりの秒数を算出
            System.out.println(String.format("%d:%d:%d", hh, mm, ss));		//時間：分：秒を表示
        }
    }
}