#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int array[n];
  for (int i = 0; i < n; i++) {
    cin >> array[i];
  }
  if (n == 1) {
    cout << 1 << endl;
    return 0;
  }
  int Count = 1;
  vector<int> vec;
  for (int i = 0; i < n - 1; i++) {
    if (array[i] < array[i + 1]) {
      Count++;
    } else if (array[i] >= array[i + 1]) {
      vec.push_back(Count);
      Count = 1;
    }
    if (i == n - 2) {
      vec.push_back(Count);
    }
  }
  cout << *max_element(vec.begin(), vec.end());
  return 0;
}
