fork download
  1. import math
  2. n, x, y = [int(i) for i in input().split()]
  3. ans = 0
  4. cnt = 0
  5. if x <= y:
  6. for i in input().split():
  7. t = int(i)
  8. if t <= x:
  9. cnt += 1
  10. ans = math.ceil(cnt / 2)
  11. elif x > y:
  12. ans = n
  13. print(ans)
Success #stdin #stdout 0s 27712KB
stdin
5 3 3
1 2 4 2 3
stdout
2