const input = require('fs').readFileSync('/dev/stdin', 'utf8').split('\n');
const num = Number(input[0]);
const hour = Math.floor(num / (60 * 60));
const minute = Math.floor(num / 60) % 60;
const second = num % 60
console.log(hour + ':' + minute + ':' + second);