#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n, x, y;
  cin >> n >> x >> y;
  vector<long long int> a(n);
  for (long long int &i : a) cin >> i;
  if (x > y) {
    cout << n;
    return;
  }
  long long int ans = 0;
  for (long long int i : a)
    if (i <= x) ++ans;
  cout << ans / 2 + ans % 2;
}
int32_t main() {
  ios::sync_with_stdio(false);
  long long int t = 1;
  while (t--) {
    solve();
  }
}
