#include <bits/stdc++.h>
using namespace std;
int color[5005];
int oc[5005];
int ans[5005];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  int a, b, i, j, k, n, m, p, q, x, y, ct, t, w, sum, mx, clr;
  while (cin >> n >> x >> y) {
    ct = 0;
    for (i = 0; i < n; i++) {
      cin >> a;
      ct += (a <= x);
    }
    if (y < x)
      cout << n << endl;
    else
      cout << (ct + 1) / 2 << endl;
  }
}
