function Main(input) { var datas = input.split(' ').map(function (i) { return Number(i); }); var Answer = datas.reduce(function (accum, current) { return accum + current; }, 0); console.log(Answer); } Main(require("fs").readFileSync("/dev/stdin", "utf8"));