function timeCalc(){
    x = x - 0;
    var s = x % 60;
    var hm = ( x - s) / 60;
    var m = hm % 60;
    var h = Math.floor(x / 3600);
    console.log(h + ":" + m + ":" + s);
}

var x = require('fs').readFileSync('/dev/stdin', 'utf8');

timeCalc(x)
