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

hs = input().split()

num = 0

for i in range(n):

  if int(hs[i]) >= k:

    num += 1

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

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

j = 0

for i in range(n):

  if his[i] >= k:

    j += 1

print(j)

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

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

-hs = input().split() -num = 0 +his = list(map(int, input().split())) +j = 0 -    if int(hs[i]) >= k: -        num += 1 -print(num) +    if his[i] >= k: +        j += 1 +print(j)