const ten2n = base => num => {
	const ary = [];
	let _num,sho,am;
	_num = num;
	while (_num > 0) {
		sho = Math.floor(_num/base);
		am = _num - sho * base;
		_num = sho;
		ary.unshift(am);
	}
	return ary;
}
const fillZoro = n => ary => {
	const ret = [];
	const len = ary.length;
	for(let i = 0; i < n; i++) ret[i] = 0;
	for(let i=n-len, j=0; i < n; i++,j++) ret[i] = ary[j];
	return ret;
	
}
const logJoinChar = d => ary => console.log(ary.join(d));
const func = obj => (n,keta,ch) => num => {
	const jump = obj.f1(n);
	const step = obj.f2(keta);
	const hop = obj.f3(ch);
	hop(step(jump(num)));
}

const input = require('fs').readFileSync('/dev/stdin', 'utf8');
const funcs = {
	f1:ten2n,
	f2:fillZoro,
	f3:logJoinChar
};
const params = func(funcs);
const action = params(60,3,':');

action(Number(input));
