#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int maxs = 0, s = 0;
  int a = 0, b;
  for (int i = 0; i < n; i++) {
    cin >> b;
    if (b > a)
      s++;
    else {
      maxs = max(maxs, s);
      s = 1;
    }
    a = b;
  }
  maxs = max(maxs, s);
  cout << maxs;
}
