'use strict'

const main = arg => {
 const time = parseInt(arg.trim().split("\n")[0], 10);
 const h = Math.floor(time / (60 * 60));
 const m = Math.floor(time % (60 * 60) / 60);
 const s = time % 60;

 console.log("%d:%d:%d", h, m, s);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));


