import std.stdio, std.string, std.conv;

void main() {
	auto input = getStdin!(int[])()[0];
	int hours = input / 3600;
	int mod = input % 3600;
	int minutes = mod / 60;
	int seconds = mod % 60;
	writefln("%d:%d:%d", hours, minutes, seconds);
}

T getStdin(T)() {
    string[] cmd;
    string line;
    while ((line = chomp(stdin.readln())) != "") cmd ~= line;
    return to!(T)(cmd);
}