N,K = map(int,input().split()) D = [0]+list(map(int,input().split())) tot = 0 i = 1 while iK: print("NO") elif (K-tot)%2==0: print("YES") else: print("NO")