const gInput = require('fs').readFileSync('/dev/stdin', 'utf8')
const input = parseInt(gInput)

const h = parseInt(input/(60*60))
const m = parseInt((input-60*60*h)/60)
const s = input % 60;

console.log(`${h}:${m}:${s}`)
