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