#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios::sync_with_stdio(false);
  int T = 1;
  while (T--) {
    bool flag = true, cond;
    long long int n, i, j, x, y = 0, ind, k, m, q, dif, mn, p = 0;
    cin >> n >> x >> y;
    vector<long long int> a(n);
    for (i = 0; i < n; i++) cin >> a[i];
    long long int c = 0;
    for (i = 0; i < n; i++) {
      if (a[i] <= x) c++;
    }
    if (x > y) {
      cout << n << "\n";
    } else {
      long long int ans = 0;
      if (c % 2 == 0)
        ans = c / 2;
      else
        ans = c / 2 + 1;
      cout << ans << "\n";
    }
  }
  return 0;
}
