process.stdin.on('readable', () => {
	var chunk = process.stdin.read();
	if (chunk === null) return;
	var S = parseInt(chunk.toString());
	console.log("%s:%s:%s",Math.floor(S/3600),Math.floor(S/60)%60,S%60);
});