var x = require('fs').readFileSync('/dev/stdin', 'utf-8');
 
function main(input) {
  var temp = parseInt(input);
  var h = Math.floor(temp/(60*60));
  var m = Math.floor((temp - h*60*60)/60);
  var s = Math.floor(temp - h*60*60 - m*60);
  console.log(h + ":" + m + ":" +s);
}

main(x);
