#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, y;
  cin >> n >> x >> y;
  int arr[105];
  for (int i = 0; i < n; i++) cin >> arr[i];
  int ct = 0;
  int chk = 0;
  if (x > y) {
    chk = 1;
    cout << n << endl;
  } else {
    for (int i = 0; i < n; i++) {
      if (arr[i] <= x) ct++;
    }
  }
  if (chk == 0) {
    if (ct % 2 == 0)
      cout << ct / 2 << endl;
    else
      cout << ((ct / 2) + 1) << endl;
  }
  return 0;
}
