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

void main() {
  int S = to!int(chomp(readln()));

  int s = S % 60;
  S /= 60;

  int m = S % 60;
  S /= 60;

  int h = S;

  // writeln(to!string(h) ~ ":" ~ to!string(m) ~ ":" ~ to!string(s));
  writef("%d:%d:%d\n", h, m, s);
}