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