#include <bits/stdc++.h>
using namespace std;
map<long double, pair<long double, long double> > m1;
int main() {
  long long i, j, k, n, x, y, count1 = 0, count2 = 0;
  cin >> n >> x >> y;
  long long arr[n];
  for (i = 0; i < n; i++) cin >> arr[i];
  if (x > y)
    cout << n << endl;
  else {
    for (i = 0; i < n; i++)
      if (arr[i] <= x) count1++;
    if (count1 % 2 == 0)
      cout << count1 / 2;
    else
      cout << count1 / 2 + 1;
  }
  return 0;
}
