var input = require('fs').readFileSync('/dev/stdin', 'utf8')
var S = Number(input)

var h = Math.floor(S / (60 * 60))
var m = Math.floor((S - h * 60 * 60) / 60)
var s = S % 60

console.log(h + ':' + m + ':' + s)