#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int n, x, y;
  cin >> n >> x >> y;
  vector<int> arr(n, 0);
  for (int i = 0; i < n; ++i) {
    cin >> arr[i];
  }
  sort(arr.begin(), arr.end());
  if (x > y) {
    cout << n << '\n';
  } else {
    int index = -1;
    for (int i = 0; i < n; ++i) {
      if (arr[i] > x) {
        index = i;
        break;
      }
    }
    if (index == -1) {
      if (n % 2 == 1) {
        cout << n / 2 + 1 << '\n';
      } else {
        cout << n / 2 << '\n';
      }
    } else {
      if ((index) % 2 == 1) {
        cout << (index) / 2 + 1 << '\n';
      } else {
        cout << (index) / 2 << '\n';
      }
    }
  }
  return 0;
}
