#include <bits/stdc++.h>
using namespace std;
template <class T>
T abs(T x) {
  return x > 0 ? x : -x;
}
template <class T>
T gcd(T a, T b) {
  return a ? gcd(b % a, a) : b;
}
template <class T>
T lcm(T a, T b) {
  return gcd(a, b) ? (a / gcd(a, b) * b) : 0;
}
template <class T>
T sqr(T a) {
  return a * a;
}
template <class T>
T sgn(T a) {
  return a > 0 ? 1 : (a < 0 ? -1 : 0);
}
long long n, m, k, sum, ans, cur, pr;
vector<long long> v;
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long x, y;
  cin >> n >> x >> y;
  for (long long i = 0; i < (n); i++) {
    long long x;
    cin >> x;
    v.push_back(x);
    ;
  }
  for (long long i = 0; i < (n); i++) {
    if (v[i] <= x) ans++;
  }
  if (x > y)
    return cout << n << '\n', 0;
  else
    return cout << (ans + 1) / 2 << '\n', 0;
}
