function main(input){
    const f = Math.floor;
    const hour = f(input/60/60);
    const minute = f(f(input/60)%60);
    const second = f(input%60);
    console.log(hour+":"+minute+":"+second);
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));
