N, K = [int(x) for x in input().split()]

if N % 2 == 0:
	if K <= int(N/2):
		print("YES")
	else:
		print("NO")
else:
	if K <= int(N/2)+1:
		print("YES")
	else:
		print("NO") int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x N, K = [int(x) for x in input().split()] N [int(x) for x in input().split()] K if N % 2 == 0:
	if K <= int(N/2):
		print("YES")
	else:
		print("NO")
else:
	if K <= int(N/2)+1:
		print("YES")
	else:
		print("NO") N % 2 == 0 N % 2 N 2 0 if K <= int(N/2):
		print("YES")
	else:
		print("NO") K <= int(N/2) K int(N/2) int N/2 N 2 print("YES") print "YES" print("NO") print "NO" if K <= int(N/2)+1:
		print("YES")
	else:
		print("NO") K <= int(N/2)+1 K int(N/2)+1 int(N/2) int N/2 N 2 1 print("YES") print "YES" print("NO") print "NO" N, K = [int(x) for x in input().split()] [int(x) for x in input().split()] N K = [int(x) for x in input().split()] [int(x) for x in input().split()] K
N, K = [int(x) for x in input().split()]

if N % 2 == 0:
	if K <= int(N/2):
		print("YES")
	else:
		print("NO")
else:
	if K <= int(N/2)+1:
		print("YES")
	else:
		print("NO")