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