#include #include using namespace std; int main() { long x; vector v; long sum = 0; cin >> x; v.resize(x); for (long i=0;i<=x-1;i++) { cin >> v[i]; cout << " "; }; for (size_t t=0; t < v.size() ; t++) { sum += v[t]; }; cout << sum << endl; return 0; }