#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, cnt1 = 1, cnt2 = 0, x = 0, arr[100000];
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  arr[n] = 0;
  for (int i = 1; i <= n; i++) {
    if (arr[i - 1] <= arr[i]) {
      cnt1++;
    } else {
      if (cnt1 > x) {
        x = cnt1;
      }
      cnt1 = 1;
    }
  }
  if (x == 0)
    cout << cnt1 << endl;
  else
    cout << x << endl;
  return 0;
}
