function Main(input){
  input = input.trim();
  let [h, m, s,] = [0, 0, 0];

  for (let i = 1; i <= input; i++){
    s++; 
    if (s === 60) {
      m++;
      s = s - 60;
    } else if (m === 60) {
      h++;
      m = m - 60;
    }
  }

  if (s === 60) {
      m++;
      s = s - 60;
    } else if (m === 60) {
      h++;
      m = m - 60;
    }

  console.log(`${h}:${m}:${s}`);
}

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