function Main(input) { var inp = input.split("\n"); var sum = 0n; for(var i = 1; i < inp.length-1; i++) { sum = sum + BigInt(inp[i]); } console.log(String(sum)); } Main(require("fs").readFileSync("/dev/stdin", "utf8"));