#include <bits/stdc++.h>
using namespace std;
int a, b, c, d, n, k, x, y;
int main() {
  cin >> n >> x >> y;
  int arr[n];
  if (x > y) {
    cout << n;
    return 0;
  }
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  sort(arr, arr + n);
  for (int i = 0; i < n; i++) {
    if (arr[i] > x) {
      break;
    }
    c++;
  }
  cout << (c + 1) / 2;
}
