#include using namespace std; int main() { std::cin.tie(0); std::ios::sync_with_stdio(false); int N; cin >> N; unsigned long long sum=0; unsigned long long a; for(int i=0;i> a; sum += a; } cout << sum << endl; return 0; }