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