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