function main(input) { input = input.split("\n"); const n = parseInt(input.shift()); let ans = 0n; let sign = []; for(let i=0; i