#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int num[n];
  int len[n];
  fill_n(len, n, 1);
  for (int i = 0; i < n; i++) {
    cin >> num[i];
  }
  for (int i = 1; i < n; i++) {
    if (num[i - 1] <= num[i]) len[i] = 1 + len[i - 1];
  }
  int ans = -1;
  for (int i = 0; i < n; i++) {
    if (len[i] > ans) ans = len[i];
  }
  cout << ans << endl;
  return 0;
}
