x, y = list(map(int,input().split()))

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



num = 0

for i in range(len(li)):

    if li[i] >= y:

        num += 1

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

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

L = [x for x in L if x >=h]

print((len(L)))
x, y = list(map(int, input().split()))
li = list(map(int, input().split()))
num = 0
for i in range(len(li)):
    if li[i] >= y:
        num += 1
print(num)

n, h = list(map(int, input().split()))
L = list(map(int, input().split()))
L = [x for x in L if x >= h]
print((len(L)))

-x, y = list(map(int, input().split())) -li = list(map(int, input().split())) -num = 0 -for i in range(len(li)): -    if li[i] >= y: -        num += 1 -print(num) +n, h = list(map(int, input().split())) +L = list(map(int, input().split())) +L = [x for x in L if x >= h] +print((len(L)))