#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int n, x, y, cnt = 0;
  cin >> n >> x >> y;
  vector<int> a(n);
  for (int &i : a) cin >> i, cnt += i <= x;
  if (x > y)
    return 0 * printf("%d", n);
  else
    return 0 * printf("%d", (cnt + 1) / 2);
  return 0;
}
