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

int main() {
  string str = chomp(readln);
  int val = to!(int)(str);
  int h = val/3600; val %= 3600;
  int m = val/60; val %= 60;
  int s = val;
  writeln(h, ":", m, ":", s);
  return 0;
}