

n,k = map(int,input().strip().split(' '))
c = 0
for i in range(n):
  if i%2 == 0:
    c+=1
if(c>=k):
  print("YES")
else:
  print("NO") n,k = map(int,input().strip().split(' ')) n map(int,input().strip().split(' ')) map int input().strip().split(' ') ().strip().split ().strip() ().strip () input strip split ' ' k c = 0 c 0 for i in range(n):
  if i%2 == 0:
    c+=1 i range(n) range n if i%2 == 0:
    c+=1 i%2 == 0 i%2 i 2 0 c+=1 c 1 if(c>=k):
  print("YES")
else:
  print("NO") c>=k c k print("YES") print "YES" print("NO") print "NO" n,k = map(int,input().strip().split(' ')) map(int,input().strip().split(' ')) n c = 0 0 c k = map(int,input().strip().split(' ')) map(int,input().strip().split(' ')) k c+=1 1 c


n,k = map(int,input().strip().split(' '))
c = 0
for i in range(n):
  if i%2 == 0:
    c+=1
if(c>=k):
  print("YES")
else:
  print("NO")