(function() {
	var S = 0;
	for (var val of require('fs').readFileSync('/dev/stdin')) {
		if (val < 48) break;
		S = 10 * S + (val - 48);
	}
	var s = S % 60;
	var M = (S - s) / 60;
	var m = M % 60;
	var h = (M - m) / 60;
	console.log(h + ":" + m + ":" + s);
}) ();