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

var inputs = Number(stdin.toString().trim());

var hour = parseInt(inputs / 3600);

var minute = parseInt((inputs % 3600) / 60);

var seconds = inputs % 60;

console.log(hour + ':' + minute + ':' + seconds);