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