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