const cin = []; const reader = require('readline').createInterface({ input: process.stdin, output: process.stdout }); reader.on('line', (line)=>{ cin.push(line); }); process.stdin.on('end', ()=>{main()}); Array.prototype.map_toInt = function(){ return this.map((e)=>+e); }; function main(){ const N = +cin.shift(); console.log( cin.shift().split(" ").map_toInt().reduce((s,e,i)=>(s+e)) ); }