#include <bits/stdc++.h>
int a[105];
int main() {
  int n, ans = 1;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) scanf("%d", &a[i]);
  for (int i = 1; i < n; i++) {
    if (a[i] >= a[0]) ans++;
  }
  printf("%d\n", ans);
  return 0;
}
