#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, x, y;
  cin >> n >> x >> y;
  vector<long long> v;
  long long count = 0;
  for (long long i = 0; i < n; i++) {
    int val;
    cin >> val;
    if (val <= x) {
      count++;
    }
    v.push_back(val);
  }
  if (x > y) {
    cout << n << endl;
  } else {
    long long a = ceil(count / 2.0);
    cout << a << endl;
  }
}
