'use strict';
process.stdin.on('data', function(chunk) {
  var lines = chunk.toString().split('\n');
  var result = (function(sec) {
    var h = ~~(sec / 3600);
    var m = ~~((sec % 3600) / 60);
    var s = ~~(sec % 60);
    return [h,m,s].join(':');
  }(parseInt(lines[0],10)
  ));

  console.log(result);
});

process.stdin.resume();
process.stdin.setEncoding('utf8');