#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[55], i, j, max = 0, count = 1;
  bool c = true;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  max = a[0];
  for (j = 1; j < n; j++) {
    if (a[j] > max) {
      c = false;
      count++;
    }
    if (c != false && j != 0 && a[j] == max) {
      count++;
    }
  }
  cout << count << endl;
}
