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