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