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