function Main(input) { const input_data = input.split("\n"); const N = parseInt(input_data[0]); const numbers = input_data[1].split(" "); var sum = 0; for (i = 0; i < N; i++) { sum += parseInt(numbers[i]); } console.log(sum); } Main(require("fs").readFileSync("/dev/stdin", "utf8"));