const input = require('fs').readFileSync('/dev/stdin', 'utf8'); const arr1 = input.split('\n'); const arr2 = arr1[1].split(' '); let N = parseInt(arr1[0]); let sum = 0; for(let i = 0; i < N; i++) { sum = sum + parseInt(arr2[i]); } console.log(sum);