const str = require('fs').readFileSync('/dev/stdin', 'utf8')
const n = parseInt(str, 10)
const s = n % 60
const m = Math.floor((n % 3600) / 60)
const h = Math.floor(n / 3600)
console.log(`${h}:${m}:${s}`)
