n,k = map(int,input().split())
frag = 0
if n%2 == 0:
    frag = n//2
else:
    frag = (n//2) + 1

if k > frag:
    print("NO")
else:
    print("YES") n,k = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k frag = 0 frag 0 if n%2 == 0:
    frag = n//2
else:
    frag = (n//2) + 1 n%2 == 0 n%2 n 2 0 frag = n//2 frag n//2 n 2 frag = (n//2) + 1 frag (n//2) + 1 n//2 n 2 1 if k > frag:
    print("NO")
else:
    print("YES") k > frag k frag print("NO") print "NO" print("YES") print "YES" frag = 0 0 frag frag = (n//2) + 1 (n//2) + 1 frag n,k = map(int,input().split()) map(int,input().split()) n k = map(int,input().split()) map(int,input().split()) k frag = n//2 n//2 frag
n,k = map(int,input().split())
frag = 0
if n%2 == 0:
    frag = n//2
else:
    frag = (n//2) + 1

if k > frag:
    print("NO")
else:
    print("YES")