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