process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function (chunk) {
    var lines = chunk.toString().split('\n');
    var x =lines[0];

var ji = Math.floor(x / 3600);
x -= ji * 3600;
var hun = Math.floor(x / 60);
x -= hun * 60;
var byo = x;
console.log(ji+":"+hun+":"+byo);
});