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