#include <bits/stdc++.h>
using namespace std;
int main() {
  int n = 0;
  int h[20];
  int san = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> h[i];
  }
  for (int i = 1; i < n; i++) {
    if (h[i] >= h[0]) san += 1;
  }
  cout << san << endl;
}
