#include <bits/stdc++.h>
using namespace std;
int n, cnt = 1;
int main() {
  cin >> n;
  int a[n + 1];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int i = 1; i < n; i++) {
    if (a[i] > a[0]) {
      cnt++;
    } else if (a[i] == a[0] && cnt == 1) {
      cnt++;
    }
  }
  cout << cnt;
}
