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');

function main(){
    i=input[0]>>0;
    h=i/3600;
    m=t%3600/60;
    s=t%60;
    console.log(`${h}:${m}:${s}`);
}

main();
