"use strict";

function Main(input) {
    console.log("%d:%d:%d",input/3600,input%3600/60,input%60);
}

function debug(){
	var input = document.getElementById("input").value;
	Main(input);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));