N,K = map(int,list(input().split(" ")))
if K > (N+1)//2:
  print("NO")
else:
  print("YES") N,K = map(int,list(input().split(" "))) N map(int,list(input().split(" "))) map int list(input().split(" ")) list input().split(" ") ().split () input split " " K if K > (N+1)//2:
  print("NO")
else:
  print("YES") K > (N+1)//2 K (N+1)//2 N+1 N 1 2 print("NO") print "NO" print("YES") print "YES" K = map(int,list(input().split(" "))) map(int,list(input().split(" "))) K N,K = map(int,list(input().split(" "))) map(int,list(input().split(" "))) N
N,K = map(int,list(input().split(" ")))
if K > (N+1)//2:
  print("NO")
else:
  print("YES")