(function() {
	var S = parseInt(require('fs').readFileSync('/dev/stdin').toString());
	var s = S % 60;
	var M = (S - s) / 60;
	var m = M % 60;
	var h = (M - m) / 60;
	console.log(h + ":" + m + ":" + s);
}) ();