#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n, x, y;
  cin >> n >> x >> y;
  long long a[n];
  for (long long i = 0; i < n; i++) cin >> a[i];
  if (x > y)
    cout << n << "\n";
  else {
    long long ans = 0;
    vector<long long> v;
    for (long long i = 0; i < n; i++) {
      if (a[i] <= x) v.push_back(a[i]);
    }
    if (v.empty())
      cout << 0 << "\n";
    else {
      ans = ceil(v.size() / 2.0);
      cout << ans << "\n";
    }
  }
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
