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