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