import std.stdio;import std.conv;import std.algorithm;import std.array;

auto 	raia(){ return readln().split().map!(to!int); }	//read as a int[]

static const int mint =60;
static const int hour = 60*mint;

void main()
{
	auto it = raia();
	writeln( it[0] /hour,":",it[0]%hour/mint,":",it[0]%mint);
}