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