#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(NULL), cout.tie(NULL);
  int n, x, y;
  cin >> n >> x >> y;
  int a[n];
  for (int j = 0; j < n; j++) cin >> a[j];
  if (x > y) {
    cout << n;
    return 0;
  }
  int count = 0;
  for (int j = 0; j < n; j++) {
    if (a[j] <= x) count++;
  }
  cout << (count + 1) / 2;
}
