#include <bits/stdc++.h>
using namespace std;
const int maxn = 100 + 10;
int n, x, y;
int a[maxn];
int main() {
  scanf("%d%d%d", &n, &x, &y);
  if (x > y) {
    printf("%d\n", n);
    return 0;
  }
  int num = 0;
  for (int i = 1; i <= n; i++) {
    scanf("%d", &a[i]);
    if (a[i] <= x) num++;
  }
  int ans = num / 2;
  if (num % 2) ans++;
  printf("%d\n", ans);
  return 0;
}
