var x = require('fs').readFileSync('/dev/stdin', 'utf8');
 
var h = Math.floor(x/3600);
var m = Math.floor((x - (h * 3600)) / 60);
var s = x - (h * 3600) - (m * 60);
console.log(h + ':' + m + ':' + s);