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

ans = 0

for i in map(int, input().split()): ans+=(i>=k)

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

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

-ans = 0 -for i in map(int, input().split()): -    ans += i >= k -print(ans) +print((sum([h >= k for h in map(int, input().split())])))