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