#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int list[100000];
  for (int i = 0; i < n; i++) {
    cin >> list[i];
  }
  int max = 1;
  int temp = 1;
  for (int i = 0; i < n - 1; i++) {
    if (list[i] < list[i + 1]) {
      temp++;
    } else {
      if (max < temp) {
        max = temp;
      }
      temp = 1;
    }
  }
  if (max < temp) {
    max = temp;
  }
  cout << max << '\n';
}
