'use strict';
(function(stdin) {
  var inputs  = stdin.toString().trim().split('\n');
  var S = parseInt(inputs[0]);
  var h = Math.floor(S/(60*60));
  var m = Math.floor(S/60%60);
  var s = S % 60

  console.log([h,m,s].join(':'));

}(require('fs').readFileSync('/dev/stdin', 'utf8')));