#include <bits/stdc++.h>
using namespace std;
int n, res = 0;
int main() {
  cin >> n;
  long long a = 0, b;
  int v = 1;
  for (int i = 1; i <= n; i++) {
    cin >> b;
    if (b < a) {
      v = i;
    } else
      res = max(res, i - v + 1);
    a = b;
  }
  cout << res;
  return 0;
}
