#include <bits/stdc++.h>
using namespace std;
const int Max = 1e9 + 100;
const long long int MAX = 1e18 + 500;
const int sz = 2e5 + 100;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int a, b, c, i, j, k, q, p, x, y, ct, ct1, m, l, r, x1, y1, mn, h, sum1, in,
      z, mid, n, mx;
  char ch;
  double d;
  string str1, str2, str;
  bool bl, bl1;
  int t, cs = 1;
  cin >> n >> x >> y;
  ct = 0;
  for (int i = 1; i <= n; i++) {
    cin >> p;
    if (p <= x) ++ct;
  }
  if (x > y)
    cout << n << '\n';
  else
    cout << ((ct / 2) + (ct & 1)) << '\n';
}
