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