#include <iostream>
using namespace std;
int main() {
int n , sm = 0 , tmp ;
cin >> n ;
for (int i = 0; i < n ; i ++){
cin >> tmp;
sm += tmp;
}
cout << sm;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKaW50IG1haW4oKSB7CiAgICBpbnQgbiAgICwgc20gPSAwICwgdG1wIDsKICAgIGNpbiA+PiBuIDsKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgbiA7IGkgKyspewogICAgICAgIGNpbiA+PiB0bXA7CiAgICAgICAgc20gKz0gdG1wOwogICAgfQogICAgY291dCA8PCBzbTsKICAgIHJldHVybiAwOwp9