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