process.stdin.resume();
process.stdin.setEncoding('utf8');
 
var input_string = "";
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});
reader.on('line', (line) => {
  input_string = line;
});
reader.on('close', () => {
  const x = input_string;

  const h = parseInt(x / 3600);
  const m = parseInt((x % 3600)/60);
  const s = (x % 3600) % 60;

console.log(h+':'+m+':'+s);
});


