#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  long long int x;
  long long int y;
  cin >> n >> x >> y;
  long long int count = 0;
  long long int a[n];
  for (long long int i = 0; i < n; i++) {
    cin >> a[i];
  }
  if (x > y) {
    cout << n;
  } else {
    for (long long int i = 0; i < n; i++) {
      if (a[i] <= x) count++;
    }
    cout << (count + 1) / 2;
  }
}
