function Main(input) {
  let s = parseInt(input, 10);
  let h = parseInt(s / 3600, 10);
  s -= 3600 * h;
  let m = parseInt(s / 60, 10);
  s -= 60 * m;
  console.log(String(h) + ":" + String(m) + ":" + String(s));
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
