#include <bits/stdc++.h>
using ll = long long;
using namespace std;
const long long INF = 1LL << 50;
using P = pair<long long, long long>;
template <class T>
bool chmin(T &a, T b) {
  if (a > b) {
    a = b;
    return true;
  } else {
    return false;
  }
}
template <class T>
bool chmax(T &a, T b) {
  if (a < b) {
    a = b;
    return true;
  } else {
    return false;
  }
}
struct Setup {
  Setup() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(20);
  }
} SETUP;
signed main() {
  long long n;
  cin >> n;
  vector<long long> hs(n);
  for (long long i = (0); i < (n); ++i) {
    long long h;
    cin >> h;
    hs[i] = h;
  }
  long long ans = 1;
  for (long long i = (1); i < (n); ++i) {
    long long tmp = 0;
    for (long long j = (0); j < (i); ++j) {
      if (hs[i] >= hs[j])
        tmp++;
      else
        break;
    }
    chmax(ans, tmp);
  }
  cout << ans << endl;
}
