#include "bits/stdc++.h"
#define ll long long
using namespace std;
int main()
{
int n;
cin>>n;
ll sum=0;
for(int i=0;i<n;i++)
{
ll temp;
cin>>temp;
sum+=temp;
}
cout<<sum<<endl;
}
I2luY2x1ZGUgImJpdHMvc3RkYysrLmgiCiNkZWZpbmUgbGwgbG9uZyBsb25nCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBtYWluKCkKewoJaW50IG47CgljaW4+Pm47CglsbCBzdW09MDsKCWZvcihpbnQgaT0wO2k8bjtpKyspCgl7CgkJbGwgdGVtcDsKCQljaW4+PnRlbXA7CgkJc3VtKz10ZW1wOwoJfQoJY291dDw8c3VtPDxlbmRsOwp9IA==