var fs = require('fs'),
    length = fs.fstatSync(process.stdin.fd).size,
    buffer = new Buffer(length),
    bytesRead = fs.readSync(process.stdin.fd, buffer, 0, length, 0),
    input = buffer.toString('utf8', 0, bytesRead).split('\n');
main();
function main(){
var S = parseInt(input);
var h = S / 3600 //秒を時間へ　1時間=60分　60分=3600秒
var m = 
var s = 

var answer = h + ":" + m +":" + s 
console.log(answer);
}
