process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function (s)
{
  const h = Math.floor(s/(60*60));
  const m = s/60;
  const a = Math.floor(m%60);
  const t = (s - (h*60*60)) - (a*60);
  const coron = ':';
  const result = h+coron+a+coron+t
  console.log(result);
});
