const main = ls => { const n = Number(ls[0]) const V = ls[1].split(" ").map(Number) const Arr = []; for (let i = 0; i < n; i++) { let num = -1; if(i+2