#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a[N];
  int ans = 1;
  int max_so_far = 1;
  for (int i = 0; i < N; ++i) {
    cin >> a[i];
  }
  for (int i = 1; i < N; ++i) {
    if (a[i - 1] <= a[i]) {
      ++max_so_far;
    } else {
      ans = max(ans, max_so_far);
      max_so_far = 1;
    }
  }
  cout << max(ans, max_so_far) << endl;
  return 0;
}
