N, K = list(map(int, input().split(" ")))

print("YES") if 2*K-1 <= N else print("NO")
 N, K = list(map(int, input().split(" "))) N list(map(int, input().split(" "))) list map(int, input().split(" ")) map int input().split(" ") ().split () input split " " K print("YES") if 2*K-1 <= N else print("NO") 2*K-1 <= N 2*K-1 2*K 2 K 1 N print("YES") print "YES" print("NO") print "NO" N, K = list(map(int, input().split(" "))) list(map(int, input().split(" "))) N K = list(map(int, input().split(" "))) list(map(int, input().split(" "))) K
N, K = list(map(int, input().split(" ")))

print("YES") if 2*K-1 <= N else print("NO")

