const input = require('fs').readFileSync('/dev/stdin', 'utf8');
let hour = Math.floor(input / 3600);
let minite = Math.floor((input - 3600 * hour) / 60);
let sec = (input - 3600 * hour) - (minite * 60);
console.log(hour + ":" + minite + ":" + sec);
