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