#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, b, r;
  cin >> n >> b >> r;
  int counts = 0;
  vector<int> v(n);
  for (int i = 0; i < n; i++) {
    cin >> v[i];
    if (v[i] <= b) counts++;
  }
  if (b > r)
    cout << n;
  else if (b <= r) {
    if (counts % 2 == 0)
      cout << counts / 2;
    else
      cout << counts / 2 + 1;
  }
}
