#include <bits/stdc++.h>
using namespace std;
void nikal_pehli_fursat_mai() {
  long long n, x, y;
  cin >> n >> x >> y;
  vector<long long> v(n);
  int cnt = 0;
  for (int i = 0; i < n; i++) {
    cin >> v[i];
    if (v[i] <= x) cnt++;
  }
  sort(v.begin(), v.end());
  if (x > y) {
    cout << n << "\n";
    return;
  } else {
    cout << (cnt + 1) / 2 << "\n";
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int tc = 1;
  while (tc--) {
    nikal_pehli_fursat_mai();
  }
}
