#include <iostream>
using namespace std;
int main()
{
long long int n,a,sum=0;
cin>>n;
for(int i=0; i<n; i++)
{
cin>>a;
sum+=a;
}
cout<<sum <<endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKCmludCBtYWluKCkKewogICAgbG9uZyBsb25nIGludCBuLGEsc3VtPTA7CiAgICBjaW4+Pm47CiAgICBmb3IoaW50IGk9MDsgaTxuOyBpKyspCiAgICB7CiAgICAgICAgY2luPj5hOwogICAgICAgIHN1bSs9YTsKICAgIH0KICAgIGNvdXQ8PHN1bSA8PGVuZGw7Cn0=