#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  int maxlen = 1;
  int len = 1;
  int j = 1;
  while (j < n) {
    if (a[j] >= a[j - 1]) {
      len++;
    } else {
      maxlen = max(maxlen, len);
      len = 1;
    }
    j++;
  }
  cout << max(maxlen, len);
  return 0;
}
