#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> as(N);
  int s = 0;
  int e = 0;
  int ret = 0;
  for (int n = 0; n < (int)(N); ++n) {
    cin >> as[n];
    if (n != 0) {
      if (as[n + 1] <= as[n]) {
        s = n;
        e = n;
        ret = max(ret, e - s + 1);
      } else {
        ++e;
      }
    }
  }
  cout << ret << endl;
  return 0;
}
