#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, aa, maxL = 0;
  cin >> n;
  vector<int> a;
  for (int variable = 0; variable < n; ++variable) {
    cin >> aa;
    a.push_back(aa);
  }
  for (int variable = 0; variable < n; ++variable) {
    int L = 0, p = 0;
    for (int i = variable; i < n; ++i) {
      if (p < a[i]) {
        L += 1;
        p = a[i];
      }
    }
    maxL = max(maxL, L);
  }
  cout << maxL << endl;
}
