process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data',function (chunk))
{
var x = parseInt(chunk.trim(), 10);
var h = Math.floor(x / 3600);
var mod = x % 3600;
var m = Math.floor(mod / 60);
s = mod % 60;
console.log(h ; ":" + m + ":" + s);
});