#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, x, y;
  cin >> n >> x >> y;
  if (x > y)
    cout << n;
  else {
    int count = 0;
    int elem;
    for (int i = 0; i < n; i++) {
      cin >> elem;
      if (elem <= x) count++;
    }
    cout << ceil(count / 2.0);
  }
  return 0;
}
