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