process.stdin.resume();
process.stdin.setEncoding('utf8');

process.stdin.on('data', function (chunk) {
    const n = chunk.toString();
    const b = h(n);
    const c = m(n);
    const d = s(n);
    console.log(`${b}:${c}:${d}`);
});
function h(n){
    const hour = n/3600;
    const hourr = Math.floor(hour);
    return hourr;
}
function m(n){
    const mminutes = n%3600;
    const minutes = mminutes/60;
    const minutess = Math.floor(minutes);
    return minutess;
}
function s(n){
    const second1 = n%3600;
    const second2 = second1%60;
    const second = Math.floor(second2);
    return second;
}
