#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  long long arr[n + 1];
  for (long long i = 0; i < n; i++) cin >> arr[i];
  vector<long long> vec;
  long long j = 1;
  for (long long i = 0; i < n - 1; i++) {
    if (arr[i] >= arr[i + 1]) {
      vec.push_back(j);
      j = 1;
    } else {
      j++;
    }
  }
  vec.push_back(j);
  sort(vec.begin(), vec.end());
  long long x = vec[(vec.size() - 1)];
  cout << x << endl;
  return 0;
}
