#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> h(N);
  for (int i = 0; i < N; ++i) {
    cin >> h[i];
  }
  int count = 0;
  for (int i = 1; i < N; ++i) {
    for (int j = 0; j < i; ++j) {
      int x = 0;
      x = max(x, h[j]);
      if (x <= h[i]) ++count;
    }
  }
  cout << count + 1 << endl;
}
