process.stdin.resume();
process.stdin.setEncoding('utf-8');
process.stdin.on('data', function (chunk) {
	var a = parseInt(chunk/3600);
	var b = parseInt((chunk%3600)/60);
	var c = parseInt((chunk%3600)%60);
    console.log(a+':'+b+':'+c);
});