#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, y;
  cin >> n >> x >> y;
  int a[n];
  for (size_t i = 0; i < n; i++) {
    cin >> a[i];
  }
  if (x > y) {
    cout << n;
    return 0;
  }
  double k = 0;
  if (x <= y) {
    for (size_t i = 0; i < n; i++) {
      if (a[i] - x <= 0) {
        k++;
      }
    }
    cout << ceil(k / 2.0);
    return 0;
  }
}
