(function() {
	var
		S = parseInt(require('fs').readFileSync('/dev/stdin').toString()),
		date = new Date(S * 1000),
		h = date.getUTCHours(),
		m = date.getUTCMinutes(),
		s = date.getUTCSeconds();
	console.log(require('util').format('%d:%d:%d', h, m, s));
}) ();