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

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

print((sum([0 if i<K else 1 for i in h])))
N, K = list(map(int, input().split(" ")))

print((sum([0 if int(x)<K else 1 for x in input().split(" ")])))
N, K = list(map(int, input().split(" ")))
h = sorted(list(map(int, input().split(" "))))
print((sum([0 if i < K else 1 for i in h])))

N, K = list(map(int, input().split(" ")))
print((sum([0 if int(x) < K else 1 for x in input().split(" ")])))

-h = sorted(list(map(int, input().split(" ")))) -print((sum([0 if i < K else 1 for i in h]))) +print((sum([0 if int(x) < K else 1 for x in input().split(" ")])))