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