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