n, k = [int(i) for i in input().split()]
if n >= (k-1)*2+1:
    print("YES")
else:
    print("NO") int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i n, k = [int(i) for i in input().split()] n [int(i) for i in input().split()] k if n >= (k-1)*2+1:
    print("YES")
else:
    print("NO") n >= (k-1)*2+1 n (k-1)*2+1 (k-1)*2 k-1 k 1 2 1 print("YES") print "YES" print("NO") print "NO" n, k = [int(i) for i in input().split()] [int(i) for i in input().split()] n k = [int(i) for i in input().split()] [int(i) for i in input().split()] k
n, k = [int(i) for i in input().split()]
if n >= (k-1)*2+1:
    print("YES")
else:
    print("NO")