function main() {
  const sec = parseInt(input[0], 10);
  const h = Math.floor(sec / 3600);
  const m = Math.floor((sec -(3600 * h)) / 60);
  const s = sec - (3600 * h) - (60 * m);
  console.log(h + ':' + m + ':' + s);
}

var input = '';

process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(chunk) {
  input += chunk;
});
process.stdin.on('end', function() {
  input = input.split('\n')
  main();
});
