c=0

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

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

for n in range(a[0]):

    if b[n]>=a[1]:

        c+=1



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

h=[int(i) for i in input().split()]

h=[i for i in h if i>=k]

print((len(h)))
c = 0
a = list(map(int, input().split()))
b = list(map(int, input().split()))
for n in range(a[0]):
    if b[n] >= a[1]:
        c += 1
print(c)

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

-c = 0 -a = list(map(int, input().split())) -b = list(map(int, input().split())) -for n in range(a[0]): -    if b[n] >= a[1]: -        c += 1 -print(c) +n, k = list(map(int, input().split())) +h = [int(i) for i in input().split()] +h = [i for i in h if i >= k] +print((len(h)))