var x = require('fs').readFileSync('/dev/stdin', 'utf8');

var h = Math.floor(x/3600);
console.log(h)
var m1 = x - (h * 3600)
var m = Math.floor(m1 / 60);
var s = x - (h * 3600) + (m * 60);
console.log(h + ':' + m + ':' + s);