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

})