#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, y;
  scanf("%d %d %d", &n, &x, &y);
  int a[n];
  for (int i = 0; i < n; i++) scanf("%d", &a[i]);
  int counter = 0;
  if (x > y)
    printf("%d", n);
  else {
    for (int i = 0, j = 0; i < n; i++) {
      if (j % 2 == 0 && a[i] <= x) {
        counter++;
        j++;
      } else if (j % 2 == 1 && a[i] + y > x && a[i] <= x) {
        j++;
      }
    }
    printf("%d", counter);
  }
  return 0;
}
