#include <bits/stdc++.h>
using namespace std;
int func(vector<int> A) {
  vector<int> res;
  int start = 0, last = 0, len = A.size(), c = 0;
  if (len > 0) {
    c = 1;
  }
  for (int i = 1; i < len; i++) {
    if (A[i - 1] > A[i]) {
      res.push_back(c);
      c = 1;
    } else {
      c++;
    }
  }
  res.push_back(c);
  return *max_element(res.begin(), res.end());
}
int main() {
  int n;
  cin >> n;
  vector<int> A;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    A.push_back(x);
  }
  cout << func(A);
  return 0;
}
