#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-8;
int main() {
  int n;
  cin >> n;
  int a[n];
  int b[n];
  int c[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    b[i] = 1;
    c[i] = 1;
  }
  for (int i = 1; i < n; i++) {
    if (a[i] >= a[i - 1]) {
      b[i] += (b[i - 1]);
    }
  }
  for (int i = n - 2; i > -1; i--) {
    if (a[i] >= a[i + 1]) {
      c[i] += (c[i + 1]);
    }
  }
  int ans = 0;
  for (int i = 0; i < n; i++) {
    ans = max(ans, b[i] + c[i] - 1);
  }
  cout << ans << endl;
  return 0;
}
