var stdin = function() {
	if (require('os').type().toString().match('Windows')) return 0;
	else return '/dev/stdin';
}();
var S = Number(require('fs').readFileSync(stdin).toString().trim());
var s = S % 60, M = (S - s) / 60, m = M % 60, h = (M - m) / 60;
console.log(h + ":" + m + ":" + s);