N, K = list(map(int, input().split()))

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

cnt = 0

for f in h:

    if f >= K:

        cnt += 1

print(cnt)
N, K = list(map(int, input().split()))

print((len([0 for x in map(int, input().split()) if x >= K])))
N, K = list(map(int, input().split()))
h = list(map(int, input().split()))
cnt = 0
for f in h:
    if f >= K:
        cnt += 1
print(cnt)

N, K = list(map(int, input().split()))
print((len([0 for x in map(int, input().split()) if x >= K])))

-h = list(map(int, input().split())) -cnt = 0 -for f in h: -    if f >= K: -        cnt += 1 -print(cnt) +print((len([0 for x in map(int, input().split()) if x >= K])))