// https://www.luogu.com.cn/problem/P1567
#include <iostream>
using namespace std;
int main()
{
long n, a[1000000] = {}, i, max = 1, t = 1;
cin >> n;
for (i = 0; i < n; i++)
cin >> a[i];
for (i = 1; i < n; i++)
{
if ((a[i] > a[i - 1]))
{
t++;
}
else
{
if (max < t)
{
max = t;
}
t = 1;
}
}
if (max < t)
max = t;
cout << max;
return 0;
}