#include <bits/stdc++.h>
int input[1001];
int ans[1001][2];
int main() {
  int n, i, answer;
  scanf("%d", &n);
  for (i = 0; i < n; i++) scanf("%d", &input[i]);
  ans[0][0] = 1;
  for (i = 1; i < n; i++) {
    if (input[i] >= input[i - 1])
      ans[i][0] = 1 + ans[i - 1][0];
    else
      ans[i][0] = 1;
  }
  ans[n - 1][1] = 1;
  for (i = n - 2; i >= 0; i--) {
    if (input[i] >= input[i + 1])
      ans[i][1] = ans[i + 1][1] + 1;
    else
      ans[i][1] = 1;
  }
  answer = -1;
  for (i = 0; i < n; i++)
    answer =
        (answer > ans[i][0] + ans[i][1] ? (answer) : (ans[i][0] + ans[i][1]));
  printf("%d\n", answer - 1);
}
