function Main(input){
	input=input.split("\n");
	let x=parseInt(input[0],10);
	let h = (x / 3600 | 0);
	let m = (x - h * 3600) / 60 | 0;
	let s = x - h * 3600 - m * 60;
	console.log("%d:%d:%d", h, m, s);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
