#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  long long arr[n];
  for (auto &i : arr) cin >> i;
  long long count = 1;
  vector<long long> size;
  size.push_back(1);
  for (long long i = 1; i < n; i++) {
    if (arr[i] > arr[i - 1]) {
      count++;
    } else {
      size.push_back(count);
      count = 1;
    }
    if (i == n - 1) {
      size.push_back(count);
    }
  }
  cout << *max_element(size.begin(), size.end());
  return 0;
}
