process.stdin.resume();
process.stdin.setEncoding('utf8');

const reader = require("readline").createInterface({
    input : process.stdin,
    output : process.stdout
})

let input_line
reader.on("line", (line) => input_line = line)

reader.on("close", () => {
    const input_second = parseInt(input_line)
    const h = Math.floor(input_second/(60*60))
    const m = Math.floor((input_second-(h*60*60))/60)
    const s = (input_second-(h*60))%60
    console.log(h + ":" + m + ":" + s)
})
