#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int pre = int(1e9 + 5);
  int cur = 0;
  int best = 0;
  int h;
  for (int i = 0; i < n; i++) {
    cin >> h;
    if (h > pre) {
      cur = 1;
      pre = h;
      best = max(best, cur);
    } else {
      cur += 1;
      best = max(best, cur);
      pre = h;
    }
  }
  cout << best - 1;
}
