#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> data(25);
  int result = 0;
  int mounum = 0;
  int count = 1;
  cin >> mounum;
  for (int i = 0; i < mounum; i++) {
    cin >> data.at(i);
  }
  for (int i = 1; i < mounum; i++) {
    for (int k = 0; k < i; k++) {
      if (data.at(k) > data.at(i)) {
        break;
      }
      count++;
    }
  }
  cout << count << endl;
}
