#include<bits/stdc++.h>
using namespace std;
signed main()
{
int n,a;
long long sum=0;
while(cin>>n)
{
sum=0;
while(n--)
{
cin>>a;
sum+=a;
}
cout<<sum<<endl;
}
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCnNpZ25lZCBtYWluKCkKewogICAgaW50IG4sYTsKICAgIGxvbmcgbG9uZyBzdW09MDsKICAgIHdoaWxlKGNpbj4+bikKICAgIHsKICAgIHN1bT0wOwogICAgd2hpbGUobi0tKQogICAgewogICAgICAgIGNpbj4+YTsKICAgICAgICBzdW0rPWE7CiAgICB9CiAgICBjb3V0PDxzdW08PGVuZGw7CiAgICB9CiAgICByZXR1cm4gMDsKfQo=