#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-9;
int a[100009] = {0};
int main() {
  int i, j, k;
  int n;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  int ans = 0;
  int pre = 1;
  int c = 0;
  for (i = 0; i < n; i++) {
    if (a[i] > pre) {
      c++;
      pre = a[i];
    } else {
      ans = max(ans, c);
      c = 1;
      pre = a[i];
    }
  }
  ans = max(ans, c);
  printf("%d\n", ans);
  return 0;
}
