#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
int a[N];
int main() {
  int n, x, y;
  int sum = 0;
  cin >> n >> x >> y;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  if (x > y)
    cout << n << endl;
  else {
    for (int i = 1; i <= n; i++)
      if (a[i] <= x) sum++;
    if (sum % 2 == 0)
      cout << sum / 2 << endl;
    else
      cout << sum / 2 + 1 << endl;
  }
  return 0;
}
