#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  long long int n = 0, x = 0, y = 0, ct = 0;
  cin >> n >> x >> y;
  vector<long long int> v;
  for (int a = 0; a < n; a++) {
    long long int z = 0;
    cin >> z;
    v.push_back(z);
  }
  sort(v.begin(), v.end());
  if (v.size() > 0) {
    long long int a = 0, b = v.size() - 1;
    while (v[b] > x) b--;
    while (a < n) {
      if (a < n && (v[a] <= x || x > y))
        ct++, v[a] = 0, a++;
      else
        break;
      if (b >= 0 && v[b] > 0) v[b] += y;
      if (b > 0 && (v[b] > x || v[b] == 0)) b--;
    }
  }
  cout << ct;
}
