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