#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  int n;
  cin >> n;
  vector<long long> a;
  for (int i = 0; i < n; i++) {
    long long l;
    cin >> l;
    a.push_back(l);
  }
  long long ans = 0;
  vector<long long> res(n);
  res[0] = 1;
  for (int i = 1; i < n; i++) {
    if (a[i] < a[i - 1]) {
      res[i] = 1;
    } else
      res[i] = res[i - 1] + 1;
  }
  for (int i = 0; i < n; i++) {
    ans = max(ans, res[i]);
  }
  cout << ans;
}
