#include <bits/stdc++.h>
using namespace std;
const long long inf = (1LL << 60) - 1;
int dx[] = {-1, 1, 0, 0};
int dy[] = {0, 0, -1, 1};
void solve() {
  long long n, x, y, k, c = 0;
  cin >> n >> x >> y;
  for (long long i = 0; i < n; i++) {
    cin >> k;
    if (k <= x) c++;
  }
  if (x > y)
    cout << n << "\n";
  else
    cout << (c + 1) / 2 << "\n";
}
int main() {
  ios::sync_with_stdio(0);
  cout.tie(0);
  ;
  solve();
  return 0;
}
