#include #include #include using namespace std; using ll = long long; using P = pair; int main(void){ int n; cin >> n; vector t(n); for(auto&x:t) cin >> x; int ok=0, ans=0; for(int i=0; i> s; if(ok<=s){ ans++, ok=s+t[i]; } } cout << ans << endl; return 0; }