#include <bits/stdc++.h>
int a[105];
int main() {
  int n, x, y, c = 0;
  scanf("%d%d%d", &n, &x, &y);
  for (int i = 1; i <= n; i++) {
    scanf("%d", &a[i]);
    if (a[i] <= x) c++;
  }
  if (x > y)
    printf("%d", n);
  else
    printf("%d\n", (c + 1) / 2);
  return 0;
}
