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