"use strict"; function Main(input) { const series = input.replace(/[^0-9]/g, '').split("").reduce((accum, current) => { return accum + Number(current); }, 0); console.log(series); } //テストの入力を受け取る Main(require("fs").readFileSync("/dev/stdin", "utf8")); //Main("1 3 4 5 6 7 8 9 10"); //# sourceMappingURL=index.js.map