let x = require('fs').readFileSync('/dev/stdin', 'UTF-8');
const hour = Math.floor(x / 3600);
const min = Math.floor((x / 60) % 60);
const sec = Math.floor((x % 60) % 60);
console.log(hour + ':' + min + ':' + sec);
