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