#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  int h[100];
  int i;
  int ctn = 1;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> h[i];
  }
  for (i = 1; i <= n; i++) {
    if (h[0] <= h[i] && h[1] <= h[i]) {
      ctn++;
    }
  }
  cout << ctn << "\n";
  return 0;
}
