process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function (chunk) {
    var lines = chunk.toString().split('\n');
    var x =lines;
var ji = x / 3600;
x -= ji * 3600;
var hun = x / 60;
x -= hun * 60;
var byo = x;
console.log(ji+":"+hun+":"+byo);
});