#include <bits/stdc++.h>
int n, x, y, att, cnt;
using namespace std;
int main() {
  cin >> n >> x >> y;
  if (x > y) return cout << n, 0;
  for (int i = (1); i <= (n); i++) {
    cin >> att;
    if (att <= x) cnt++;
  }
  cout << (cnt + 1) / 2;
}
