#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int *m = new int[n];
  int max = 1, count = 1;
  for (int i = 0; i < n; i++) {
    cin >> m[i];
    if (i > 0 && m[i - 1] < m[i]) {
      count++;
      if (max < count) {
        max = count;
      }
    } else if (i > 0 && m[i - 1] >= m[i]) {
      if (max < count) {
        max = count;
      }
      count = 1;
    }
  }
  if (n == 0) max = 0;
  cout << max << endl;
  return 0;
}
