const main = input => { const lines = input.trim().split('\n'); const N = Number(lines[0].trim()); const A = []; for (let i = 1; i < N + 1; i++) { A.push(BigInt(lines[i].trim())); } const ans = String(A.reduce((a, b) => a + b)); console.log(ans); } const input = require('fs').readFileSync('/dev/stdin', 'utf8'); main(input);