#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, y, a[120];
  cin >> n >> x >> y;
  for (int i = 0; i < n; i++) cin >> a[i];
  if (x > y)
    cout << n;
  else {
    int counter = 0;
    for (int i = 0; i < n; i++) {
      if (a[i] <= x) {
        counter++;
      }
    }
    counter = counter / 2 + (counter % 2);
    cout << counter;
  }
  return 0;
}
