const input = require('fs').readFileSync('/dev/stdin', 'UTF-8');

const watch = input => {
  const time = Number(input);
  const h = Math.floor(time / 3600);
  const m = Math.floor((time - h * 3600) / 60);
  const s = Math.floor(time - h * 3600 - m * 60);
  console.log([h, m, s].join(':'));
};

watch(input);

