#Anti-Adjacency
N,K = map(int,input().split())
j = N//2 + N%2
if K <= j:
    print("YES")
else:
    print("NO") N,K = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K j = N//2 + N%2 j N//2 + N%2 N//2 N 2 N%2 N 2 if K <= j:
    print("YES")
else:
    print("NO") K <= j K j print("YES") print "YES" print("NO") print "NO" K = map(int,input().split()) map(int,input().split()) K N,K = map(int,input().split()) map(int,input().split()) N j = N//2 + N%2 N//2 + N%2 j
#Anti-Adjacency
N,K = map(int,input().split())
j = N//2 + N%2
if K <= j:
    print("YES")
else:
    print("NO")