import math
n, x, y = [int(i) for i in input().split()]
ans = 0
cnt = 0
if x <= y:
for i in input().split():
t = int(i)
if t <= x:
cnt += 1
ans = math.ceil(cnt / 2)
elif x > y:
ans = n
print(ans)
aW1wb3J0IG1hdGgKbiwgeCwgeSA9IFtpbnQoaSkgZm9yIGkgaW4gaW5wdXQoKS5zcGxpdCgpXQphbnMgPSAwCmNudCA9IDAKaWYgeCA8PSB5OgogICAgZm9yIGkgaW4gaW5wdXQoKS5zcGxpdCgpOgogICAgICAgIHQgPSBpbnQoaSkKICAgICAgICBpZiB0IDw9IHg6CiAgICAgICAgICAgIGNudCArPSAxCiAgICBhbnMgPSBtYXRoLmNlaWwoY250IC8gMikKZWxpZiB4ID4geToKCWFucyA9IG4KcHJpbnQoYW5zKQ==