#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, c = 1, temp, max = 1;
  long long a;
  cin >> n;
  cin >> a;
  n--;
  temp = a;
  while (n--) {
    cin >> a;
    if (temp < a)
      c++;
    else {
      if (c >= max) max = c;
      c = 1;
    }
    temp = a;
  }
  if (max >= c)
    cout << max << endl;
  else
    cout << c << endl;
  return 0;
}
