var input=require("fs").readFileSync("/dev/stdin","utf8");
 
input=input.split("\n");
var time=parseInt(input);
var h=time/3600;
var m=(time%3600)/60;
var s=(time%3600)%60;
console.log(parseInt(h)+":"+parseInt(m)+":"+parseInt(s));

