#include <bits/stdc++.h>
using namespace std;
int a[1110111];
int main() {
  int n;
  cin >> n;
  int k = 0, mx = 0;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    if (a[i] >= a[i - 1]) {
      k++;
    } else {
      mx = max(mx, k);
      k = 1;
    }
  }
  mx = max(mx, k);
  k = 1;
  cout << mx;
  return 0;
}
