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