function Main(input) { const foo = input.split("\n"); const N = foo[0]; const hoge = foo[1].split(" "); let cal = 0; for(let i = 0; i < N; i++) { cal = cal + hoge[i]; } console.log(cal); } // Don't edit this line! Main(require("fs").readFileSync("/dev/stdin", "utf8"));