#include <bits/stdc++.h>
using namespace std;
int n, a;
int ans1 = 0, ans2 = 0, k = 0;
inline int read() {
  register int s = 0, w = 1;
  register char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') w = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') s = s * 10 + ch - '0', ch = getchar();
  return s * w;
}
int main() {
  n = read();
  for (int i = 1; i <= n; i++) {
    a = read();
    if (a > k) {
      ans1++;
    } else {
      ans2 = max(ans1, ans2);
      ans1 = 1;
    }
    k = a;
  }
  cout << max(ans1, ans2) << endl;
  return 0;
}
