#include <bits/stdc++.h>
using namespace std;
long long MOD = 998244353;
double eps = 1e-12;
long long max(long long a, long long b) {
  if (a > b) {
    return a;
  } else {
    return b;
  }
}
long long min(long long a, long long b) {
  if (a < b) {
    return a;
  } else {
    return b;
  }
}
void solve() {
  long long n, x, y;
  cin >> n >> x >> y;
  long long count = 0;
  long long temp;
  for (long long i = 0; i < n; i++) {
    cin >> temp;
    if (temp <= x) {
      count++;
    }
  }
  if (x > y) {
    cout << n << "\n";
  } else {
    cout << count / 2 + count % 2 << "\n";
  }
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
