#include using namespace std; int main(void){ int n; cin>>n; int t[n]; for(int i=0;i>t[i]; priority_queue>pq; for(int i=0;i>s; pq.push({-s,t[i]}); } int now=0,ans=0; while(!pq.empty()){ if(-pq.top().first>=now){ now=-pq.top().first+pq.top().second; ans++; } pq.pop(); } cout<