(function(stdin){
	var lines = stdin.toString().split('\n').map(Number);
	var x = lines[0];
	var h = ~~(x /(60 * 60));
	var m = ~~(x %(60 * 60)/60);
	var s = ~~(x % 60);
	console.log(h+":"+m+":"+s);
}(require('fs').readFileSync('/dev/stdin','utf8')));