function main(input) { let [N, M, K] = getIntegers(input, " "); let l = getStrings(input, " "); let op = l.shift(); let B = l.map(x=>BigInt(x)); let A = getIntegers(input); let ans = 0n; if(op == '+') { let sum = 0n; for(let i=0; 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