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