const BigInteger = require("big-integer"); const row = require('fs').readFileSync('/dev/stdin', 'utf8').split('\n'); const column = row[1].split(' '); const element = column.map(e => { return BigInteger(e); }) const result = element.reduce((acc, cur) => { return acc + cur; }) console.log(result);