#include <bits/stdc++.h>
int main(void) {
  long long int n, count = 1, max = 0;
  long long int i;
  long long int a[100000];
  scanf("%lld", &n);
  for (i = 0; i < n; i++) scanf("%lld", &a[i]);
  for (i = 0; i < n - 1; i++) {
    if (a[i] <= a[i + 1]) {
      count++;
    } else {
      if (max < count) {
        max = count;
      }
      count = 1;
    }
  }
  if (max < count) max = count;
  printf("%lld\n", max);
  return 0;
}
