const row = require('fs').readFileSync('/dev/stdin','utf8').split('\n'); const column = row[1].split(' '); const element = column.map(e => BigInt(Number(e))); const result = element.reduce((acc,cur) => { return acc + cur; }); console.log(result.toString().replace('/n/g',''));