N, K = list(map(int, input().split()))
num = 0
#奇数の数を求める
for n in range(1,N+1):
    if n%2!=0:
        num += 1
if num<K:
    print("NO")
else:
    print("YES") N, K = list(map(int, input().split())) N list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split K num = 0 num 0 for n in range(1,N+1):
    if n%2!=0:
        num += 1 n range(1,N+1) range 1 N+1 N 1 if n%2!=0:
        num += 1 n%2!=0 n%2 n 2 0 num += 1 num 1 if num<K:
    print("NO")
else:
    print("YES") num<K num K print("NO") print "NO" print("YES") print "YES" num = 0 0 num N, K = list(map(int, input().split())) list(map(int, input().split())) N K = list(map(int, input().split())) list(map(int, input().split())) K num += 1 1 num
N, K = list(map(int, input().split()))
num = 0
#奇数の数を求める
for n in range(1,N+1):
    if n%2!=0:
        num += 1
if num<K:
    print("NO")
else:
    print("YES")