function body(S){
    var ss = parseInt(S);
    var s = ss % 60;
    var x = Math.floor(ss / 60);
    var m = x % 60;
    var h = Math.floor(x / 60);

    return(h.toString() + ":" + m.toString() + ":" + s.toString());
}
    
str = require("fs").readFileSync("/dev/stdin", "utf8");
console.log(body(str));
