#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  long long int i;
  vector<long long int> v(n);
  for (i = 0; i < n; ++i) {
    cin >> v[i];
  }
  long long int count = 1, max = INT_MIN;
  for (i = 1; i < n; ++i) {
    if (v[i] >= v[i - 1]) {
      count++;
    } else {
      if (count > max) {
        max = count;
      }
      count = 1;
    }
  }
  if (count > max) {
    max = count;
  }
  cout << max;
}
