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