#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int N, *arr, key, z = 0, max, n;
  int k = 0;
  cin >> N;
  arr = new (nothrow) long long int[N];
  for (n = 0; n < N; n++) cin >> arr[n];
  key = arr[0];
  for (n = 0; n < N; n++) {
    if (key <= arr[n]) {
      z++;
      key = arr[n];
    } else {
      key = arr[n];
      z = 1;
    }
    if (k == 0) {
      max = z;
      k++;
    } else {
      if (z > max) max = z;
    }
  }
  cout << max << endl;
}
