 (function(stdin) {
    var lines = stdin.toString();
    var x = parseInt(lines);
    var x1 = x/60;
    var x2 = x/(60*60);
    var x3 = x%(60*60);
    console.log(x1+':'+x2+':'+x3);
 }(require('fs').readFileSync('/dev/stdin', 'utf8')));