"use strict";

var readable = process.stdin;
readable.resume();
readable.setEncoding( 'utf-8' );

readable.on( 'data', function( chunk ) {
		var data = chunk.split( '\n' );
		var time = parseInt( data[0] );
		var h = Math.floor(time/3600);
		var t = time%3600;
		var m =  Math.floor(t/60);
		var s =  t%60;

		var output = [];
		output.push( h );
		output.push( m );
		output.push( s );
		console.log( output.join( ":" ) );
});
