function main(input) { let [N] = getIntegers(input, " "); if(isSosu(N)) { console.log("Sosu!"); } else if(isHeiho(N)) { console.log("Heihosu!"); } else if(isRipo(N)) { console.log("Ripposu!"); } else if(isKan(N)) { console.log("Kanzensu!"); } else { console.log(N); } } function isSosu(n) { if(n == 2) return true; for(let i=2; i 1) { let x = Math.floor((r + l) / 2); this[x] > V ? r = x : l = x; } return r; }; Array.prototype.lessThen = function(V, l=0, r=this.length) { l--; while(r - l > 1) { let x = Math.floor((r + l) / 2); this[x] >= V ? r = x : l = x; } return r; }; Array.prototype.orHigher = function(V, l, r) { return this.length - this.lessThen(V, l, r); }; Array.prototype.greaterThan = function(V, l, r) { return this.length - this.orLess(V, l, r); }; Array.prototype.deepCopy = function(list) { let retList = []; for(let i=0; i