#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 10;
int n, x, y;
int a[maxn];
void solve() {
  if (x > y) {
    cout << n << endl;
  } else {
    int num = 0;
    for (int i = 0; i < n; i++) {
      if (a[i] <= x) num++;
    }
    cout << (num + 1) / 2 << endl;
  }
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  while (cin >> n >> x >> y) {
    for (int i = 0; i < n; i++) cin >> a[i];
    solve();
  }
  return 0;
}
