#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  vector<int> v(n);
  for (int i = 0; i < n; i++) {
    cin >> v[i];
  }
  vector<int> dp(n);
  dp[0] = 1;
  for (int i = 1; i < n; i++) {
    if (v[i] >= v[i - 1])
      dp[i] = dp[i - 1] + 1;
    else
      dp[i] = 1;
  }
  int ans = 0;
  for (int i = 0; i < n; i++) {
    if (dp[i] > ans) ans = dp[i];
  }
  cout << ans << "\n";
  return 0;
}
