#include<bits/stdc++.h>
#define int long long
using namespace std;
const int INF = 1e16 + 7;
char buf[1<<21],*p1,*p2;
#define gc() (p1 == p2 && (p2 = (p1 = buf) + fread(buf,1,1<<20,stdin),p1 == p2) ? 0 : *p1++)
template <typename T>
inline void read(T& x){
x = 0;
int f = 1;
char ch = gc();
while(!isdigit(ch)){
if(ch == '-') f = -1;
ch = gc();
}
while(isdigit(ch)){
x = (x << 1) + (x << 3) + (ch ^ 48);
ch = gc();
}
x *= f;
}
int n,x,s = 0;
signed main(){
read(n);
for(int i = 1; i <= n; i++) read(x),s += x;
printf("%lld",s);
return 0;
}