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

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

l.sort(reverse=True)

count1=0

for i in l:

  if(i<k):

    break

  count1=count1+1

print(count1)

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

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

count1=0

for i in l:

  if(i>=k):

    count1+=1

print(count1)

n, k = list(map(int, input().split()))
l = list(map(int, input().split()))
l.sort(reverse=True)
count1 = 0
for i in l:
    if i < k:
        break
    count1 = count1 + 1
print(count1)

n, k = list(map(int, input().split()))
l = list(map(int, input().split()))
count1 = 0
for i in l:
    if i >= k:
        count1 += 1
print(count1)

-l.sort(reverse=True) -    if i < k: -        break -    count1 = count1 + 1 +    if i >= k: +        count1 += 1