var input = require('fs').readFileSync('/dev/stdin', 'utf8');
var S = Number(input);

var s = S % 60;
var m = (S - s) / 60 % 60;
var h = Math.floor(S / (60 * 60));

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