import std.algorithm, std.array, std.container, std.range, std.bitmanip;
import std.numeric, std.math, std.bigint, std.random, core.bitop;
import std.string, std.conv, std.stdio, std.typecons;

void main()
{
  auto s = readln.chomp.to!int;
  writeln(s / (60 * 60), ":", s % (60 * 60) / 60, ":", s % 60);
}