(function(stdin) {
    var lines = stdin.toString().split('\n');
    var t = lines[0];
    var h = ~~(t / (60 * 60));
    var m = ~~((t % (60 * 60)) / 60);
    var s = ~~((t % 60));
    console.log(h + ':' + m + ':' + s);