var out = function(x) {
  console.log(x);
  return x;
}

var h = function(S) {
  return Math.floor(S/3600);
}

var m = function(S) {
  return Math.floor((S%3600)/60);
}

var s = function(S) {
  return S % 60;
}

process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(input) {
  out(h(input) +':'+ m(input) + ':' + s(input));
});