n, k = list(map(int, input().split()))

l = list(map(int, input().split()))



ans = 0



for i in range(n):

  if l[i] >= k:

    ans += 1



print(ans)
_, k = list(map(int, input().split()))

l = list(map(int, input().split()))



print((sum(1 for i in l if i>=k)))
n, k = list(map(int, input().split()))
l = list(map(int, input().split()))
ans = 0
for i in range(n):
    if l[i] >= k:
        ans += 1
print(ans)

_, k = list(map(int, input().split()))
l = list(map(int, input().split()))
print((sum(1 for i in l if i >= k)))

-n, k = list(map(int, input().split())) +_, k = list(map(int, input().split())) -ans = 0 -for i in range(n): -    if l[i] >= k: -        ans += 1 -print(ans) +print((sum(1 for i in l if i >= k)))