function Main(input) { const data = input.split("\n"); const N = data[0]; const arrayNums = data[1].split(" "); console.log(arrayNums.reduce((a,b) => Number(a)+Number(b))); } Main(require("fs").readFileSync("/dev/stdin", "utf8"));