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

void main()
{
    string line = chomp(readln());
    auto S = to!int(line);
    // auto S = to!int(chomp(readln()));
    auto h = S/60/60;
    auto m = (S-h*60*60)/60;
    auto s = (S-m*60-h*60*60);
    writefln("%d:%d:%d", h, m, s);
}