#include using namespace std; int main() { int n; cin>>n; int a[300001]; for(int i=0;i>a[i]; int cnt=0; for(int i=0;i