#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, l = 1;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  int maxl = 1, nma;
  for (int i = 0; i < n; i++) {
    nma = a[i];
    l = 1;
    for (int j = i + 1; j < n; j++) {
      if (nma < a[j]) {
        nma = a[j];
        l++;
        maxl = max(maxl, l);
      }
    }
  }
  cout << maxl << endl;
}
