"use strict";

function Main(input) {
    var time=input.split("\n")[0];
    var h=time/3600;
    var m=time%3600/60;
    var s=time%60;
    console.log([Math.floor(h),Math.floor(m),Math.floor(s)].join(":"));
}

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

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