Today Chef wants to evaluate the dishes of his $N$ students. He asks each one to cook a dish and present it to him.
Chef loves his secret ingredient, and only likes dishes with at least $X$ grams of it.
Given $N$, $X$ and the amount of secret ingredient used by each student $A_i$, find out whether Chef will like at least one dish. 

-----Input:-----
- First line will contain $T$, number of testcases. Then the testcases follow. 
- The first line of each testcase contains two integers $N$ 
(number of students) and $X$ (minimum amount of secret ingredient that a dish must contain for Chef to like it).
- The next line contains $N$ space separated integers, $A_i$ denoting the amount of secret ingredient used by the students in their dishes.

-----Output:-----
For each testcase, print a single string "YES" if Chef likes at least one dish. Otherwise, print "NO". (Without quotes).

-----Constraints:-----
- $1 \leq T \leq 100$
- $1 \leq N \leq 1000$
- $1 \leq X \leq 1000000$
- $1 \leq A_i \leq 1000000$

-----Sample Input:-----
3
5 100
11 22 33 44 55
5 50
10 20 30 40 50
5 45
12 24 36 48 60

-----Sample Output:-----
NO
YES
YES

Difficulty: interview

Starter code:

Solutions:
t=int(input())
for i in range(t):
 n,k=map(int,input().split())
 m=list(map(int,input().split()))
 a=0
 for i in m:
  if i>=k:
   a=1
   break
 if a==1:
  print('YES')
 else:
  print('NO')

for i in range(int(input())):
 n,m=map(int,input().split())
 k=list(map(int,input().split()))
 c=0
 for i in k:
  if i>=m:
   c=1
   break
 if c==1:
  print('YES')
 else:
  print('NO')

# cook your dish here
for _ in range(int(input())):
 n,x=map(int,input().split())
 f=list(map(int,input().split()))
 d=0
 for i in f:
  if i>=x:
   d=1 
   break
 if d==1:
  print("YES")
 else:
  print("NO")

# cook your dish here
for i in range(int(input())):
 n,x=list(map(int,input().split()))
 a=list(map(int,input().split()))
 c=0
 for i in a:
  if i>=x:
   c+=1
 if c>=1:
  print("YES")
 else:
  print("NO")

t=int(input())
for i in range(t):
 n,k=list(map(int,input().split()))
 a=list(map(int,input().split()))
 search=0
 for i in range(len(a)):
  if(a[i]>=k):
   search=1
   break
 if(search==1):
  print("YES")
 else:
  print("NO")


T=int(input())
for i in range(T):
 N,K=map(int,input().split())
 A=list(map(int,input().split()))[:N]
 for j in range(len(A)):
  if A[j]>=K:
   print("YES")
   break
 else:
  print("NO")

T=int(input())
for i in range(T):
 N,K=map(int,input().split())
 A=list(map(int,input().split()))[:N]
 for j in range(len(A)):
  if A[j]>=K:
   print("YES")
   break
 else:
  print("NO")

for t in range(int(input())):
 n , x = list(map(int, input().split()))
 numberlist = list(map(int,input().split()))
 numberlist.sort()
 count = 0
 for f in numberlist :
  if f >= x :
   count = count +1
 if count > 0 :
  print("YES")
 else :
  print("NO")


for i in range(int(input())):
 a,b=list(map(int,input().split())) 
 ar=list(map(int,input().split())) 
 for j in ar:
  if j>=b:
   print('YES')
   break
 else:
  print('NO')


# cook your dish here
for _ in range(int(input())):
 n,k=map(int,input().split())
 l=[int(x) for x in input().split()]
 f=0
 for i in l:
  if(i>=k):
   print("YES")
   f=1
   break
 if(f==0):
  print("NO")

for t in range(int(input())):
 n,m=map(int,input().split())
 l=list(map(int,input().split()))
 f=0
 for i in l:
  if i>=m:
   print("YES")
   f=1
   break
 if f==0:
  print("NO")

for _ in range(int(input())):
 n, x = map(int, input().split())
 a = list(map(int, input().split()))
 #f = False
 if max(a)>=x:
  print("YES")
 else:
  print("NO")

# cook your dish here
t=int(input())
while t>0:
 n,x=list(map(int,input().split()))
 a=list(map(int,input().split()))
 f=0
 for i in a:
  if i>=x:
   f=1
   break
 if f==1:
  print("YES")
 else:
  print("NO")
 t=t-1



for _ in range(int(input())):
 n,k = map(int,input().split())
 l = list(map(int,input().split()))
 if max(l)>=k:
  print("YES")
 else:
  print("NO")

# cook your dish here
# cook your dish here
t=int(input())
i=0
while(i<t):
 y=input().split()
 n=int(y[0])
 x=int(y[1])
 a=input().split()
 m=0
 while(m<n):
  a[m]=int(a[m])
  m+=1
 j=0
 while(j<n):
  if(a[j]>=x):
   print("YES")
   break
  else:
   if(j==(n-1)) and (a[j]<x):
    print("NO")
    break
   else:
    j=j+1
 i=i+1


# cook your dish here
t=int(input())
i=0
while(i<t):
 y=input().split()
 n=int(y[0])
 x=int(y[1])
 a=input().split()
 m=0
 while(m<n):
  a[m]=int(a[m])
  m+=1
 j=0
 while(j<n):
  if(a[j]>=x):
   print("YES")
   break
  else:
   if(j==(n-1)) and (a[j]<x):
    print("NO")
    break
   else:
    j=j+1
 i=i+1


t=int(input())
i=0
while(i<t):
 y=input().split()
 n=int(y[0])
 x=int(y[1])
 a=input().split()
 m=0
 while(m<n):
  a[m]=int(a[m])
  m+=1
 j=0
 while(j<n):
  if(a[j]>=x):
   print("YES")
   break
  else:
   if(j==(n-1)) and (a[j]<x):
    print("NO")
    break
   else:
    j=j+1
 i=i+1


def func(x, a):
 for amount in a:
  if amount >= x:
   return "YES"
  
 return "NO"

for _ in range(int(input())):
 a = input().split()
 n = int(a[0])
 x = int(a[1])
 print(func(x, map(int, input().split())))

# cook your dish here
for T in range(int(input())):
 n,k = map(int,input().split())
 ls = list(map(int,input().split()))
 maxi = max(ls)
 if maxi>=k:
  print("YES")
 else:
  print("NO")

for _ in range(int(input())):
 n,X = (map(int,input().split(' ')))
 l = list(map(int,input().split(' ')))
 count = 0
 flag = 0
 for x in l:
  if x >= X:
   flag = 1
   print('YES')
   break
 if flag == 0:
  print('NO')

# cook your dish here
t=int(input())
for i in range(t):
 n,x=list(map(int,(input()).split()))
 a=list(map(int,(input()).split()))
 total=0
 for j in a:
  if j>=x:
   total=total+1 
 if total>=1:
  print("YES")
 else:
  print("NO")

# cook your dish here
for _ in range(int(input())):
 n,x=map(int,input().split())
 a=list(map(int,input().split()))
 a.sort()
 if a[-1]>=x:
  print("YES")
 else:
  print('NO')

# cook your dish here
try:
 for i in range(int(input())):
  n,x=map(int,input().split())
  l=list(map(int,input().strip().split()))
  l.sort()
  
  for i in l:
   if (i>=x):
    print("YES")
    break
  else:
   print("NO")
except:
 pass

t = int(input())
for i in range(t):
 n,x = map(int,input().split())
 lst = [int(x) for x in input().split()]
 for j in range(len(lst)):
  if lst[j]>=x:
   print('YES')
   break
 else:
  print('NO')

for i in range(int(input())):
 (n,x)=(map(int, input().split(" ")))
 l=list(map(int,input().split(" ")))
 for j in range(len(l)):
  if l[j]>=x:
   print("YES")
   break
 else:
  print("NO")