Problem: Shubham has an array a of size n, and wants to select exactly x elements from it, such that their sum is odd. These elements do not have to be consecutive. The elements of the array are not guaranteed to be distinct.

Tell him whether he can do so.

Input

The first line of the input contains a single integer t (1≤ t ≤ 100) — the number of test cases. The description of the test cases follows.

The first line of each test case contains two integers n and x (1 ≤ x ≤ n ≤ 1000) — the length of the array and the number of elements you need to choose.

The next line of each test case contains n integers a_1, a_2, ..., a_n (1 ≤ a_i ≤ 1000) — elements of the array.

Output

For each test case, print "Yes" or "No" depending on whether it is possible to choose x elements such that their sum is odd.

You may print every letter in any case you want.

Example

Input


5
1 1
999
1 1
1000
2 1
51 50
2 2
51 50
3 3
101 102 103


Output


Yes
No
Yes
Yes
No

Note

For 1st case: We must select element 999, and the sum is odd.

For 2nd case: We must select element 1000, so overall sum is not odd.

For 3rd case: We can select element 51.

For 4th case: We must select both elements 50 and 51 — so overall sum is odd.

For 5th case: We must select all elements — but overall sum is not odd.

Solution (in PYTHON3):

Solution:
#CF 644 (DIV-3)
 
    

'''test=int(input())
for i in range(test):
    a,b=[int(i) for i in input().split()]
    k=min(a,b)
    if 2*k>=max(a,b):
        print((2*k)**2)
    else:
        print((max(a,b))**2)'''
            
'''test=int(input())
for i in range(test):
    n=int(input())
    arr=[int(i) for i in input().split()]
    ans=float("inf")
    for i in range(n-1):
        res=float("inf")
        for j in range(i+1,n):
            res=min(res,abs(arr[i]-arr[j]))
        ans=min(ans,res)
    print(ans)'''

'''test=int(input())

for i in range(test):
    n=int(input())
    arr=[int(i) for i in input().split()]
    even=0
    odd=0
    for i in range(n):
        if arr[i]%2:
            odd+=1
        else:
            even+=1
    if even%2!=odd%2:
        print("NO")
    else:
        if even%2==0 and odd%2==0:
            print("YES")
        else:
            flag=0
            for i in range(n-1):
                for j in range(i+1,n):
                    if arr[i]%2!=arr[j]%2 and abs(arr[i]-arr[j])==1:
                        flag=1
                        break
            if flag:
                print("YES")
            else:
                print("NO")'''



'''test=int(input())
def check(t):
    i=2
    ans=set()
    while i**2<=t:
        if t%i==0:
            ans.add(i)
            ans.add(n/i)
            
        i+=1
    if t>1:
        ans.add(t)
    return ans

for i in range(test):
    n,k=[int(i) for i in input().split()]
    if k>=n:
        print(1)
    else:
        flag=1
        a=[i for i in sorted(check(n),reverse=True)]
        ans=float("inf")
        for i in a:
            if i<=k:
                ans=min(ans,int(n/i))
                
        if ans!=float("inf"):
            print(ans)
        else:
            print(n)'''
            
'''test=int(input())
for i in range(test):
    n=int(input())
    arr=[ 0 for i in range(n)]
    
    for i in range(n):
        arr[i]=[int(i) for i in input()]
    #print(arr)
    flag=1
    for i in range(n):
        for j in range(n):
            if arr[i][j]:
                if i==n-1 or j==n-1:
                    continue
                else:
                    if (arr[i+1][j] or arr[i][j+1]):
                        continue
                    else:
                        flag=0
                        break
        if not flag:
            break
    #print(flag)
    if not flag:
        print("NO")
    else:
        print("YES")'''

#CF 642(DIV-2)

'''test=int(input())
for i in range(test):
    n,m=[int(i) for i in input().split()]
    k=max(n,m)
    t=min(n,m)
    if k%2:
        ans=(k-1)*0.5*t+(t//2 +t%2)
    else:
        ans=(k/2)*t
    print(int(ans))
'''
'''test=int(input())
for i in range(test):
    n=int(input())
    arr=[int(i) for i in input().split()]
    arr.sort()
    dp=[0]*(n)
    ans=1
    last=0
    for i in range(n):
        if ans + i>=arr[i]:
            dp[i]=1
            last=i+1

    print(ans+last)'''

'''test=int(input())
for i in range(test):
    x1,y1,x2,y2=[int(i) for i in input().split()]
    if x1==x2 or y1==y2:
        print(1)
    else:
        path=1
        n=x2-x1
        m=y2-y1
        print(m*n+1)'''

# Educational round
'''test=int(input())
for i in range(test):
    n,m,k=[int(i) for i in input().split()]
    cards=n//k
    if cards>=m:
        print(m)
    else:
        rem=m-cards
        if rem%(k-1)==0:
            ans=cards-(rem//(k-1))
        else:
            ans=cards-(rem//(k-1) +1)
        print(ans)'''

'''test=int(input())
for i in range(test):
    n,m,x,y=[int(i) for i in input().split()]
    arr=[0]*(n)
    for i in range(n):
        arr[i]=[i for i in input()]
    dp=[[0 for j in range(m)] for k in range(n)]
    price=0
    #print(arr)
    #print(dp)
    for i in range(n):
        for j in range(m):
            if arr[i][j]=="." and not dp[i][j]:
                if j+1<m and arr[i][j+1]==".":
                    if 2*x<=y:
                        dp[i][j]=1
                        dp[i][j+1]=1
                        price+=2*x
                    else:
                        dp[i][j]=1
                        dp[i][j+1]=1
                        price+=y
                else:
                    dp[i][j]=1
                    price+=x
    print(price)
'''
'''test=int(input())
import math
for i in range(test):
    h,c,t=[int(i) for i in input().split()]
    quant=(t-c)/(h-c)
    if t==(h+c)/2:
        print(2)
    elif h==t:
        print(1)
    elif c==t:
        print(2)
    else:
        #print(quant)
        ans=math.ceil(quant/(2*quant-1))
        print(int(2*ans-1))
'''
'''n=int(input())
arr=[int(i) for i in input().split()]
dp=[0]*(n)
max_=[]
for i in range(n):
    res=float("-inf")
    sum1=0
    while max_ and arr[max_[-1]]<=arr[i]:
        #print(max_)
        t=arr[max_.pop()]
        sum1+=t
        res=max(res,sum1)
    dp[i]+=max(res,0)
    max_.append(i)
min_=[]
for j in range(n-1,-1,-1):
    res2=float("-inf")
    sum_=0
    while min_ and arr[min_[-1]]<=arr[j]:
        k=arr[min_.pop()]
        sum_+=k
        res2=max(res2,sum_)
    min_.append(j)
    dp[j]+=max(res2,0)
    


print(max(dp))
'''

# CF 646-DIV-2

test=int(input())
for i in range(test):
    n,x=[int(i) for i in input().split()]
    arr=[int(i) for i in input().split()]
    even=0
    odd=0
    for i in arr:
        if i%2:
            odd+=1
        else:
            even+=1
    if odd%2==0:
        odd-=1
    if odd>0 and (x%2==1 or even>0) and odd+even>=x:
        ans="YES"
    else:
        ans="NO"

    print(ans)

'''test=int(input())
for i in range(test):
    s=input()
    suff=[0]*(len(s))
    suff[len(s)-1]=0
    ones=int(s[-1])
    for i in range(len(s)-2,-1,-1):
        suff[i]=ones
        ones+=int(s[i])
    ones=0
    zero=0
    ans=0
    for i in range(len(s)):
        if s[i]=="0":
            if ones>0 and suff[i]:
                ans+=1
                ones+=1
            else:
                zero+=1
        else:
            if zero>0 and suff[i]<len(s)-(i+1):
                ans+=1
                zero+=1
            else:
                ones+=1
    print(ans)
    print(suff)'''