N, K = [int(i) for i in input().split()]
 
if (K - 1) <= (N - 1) // 2:
  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 (K - 1) <= (N - 1) // 2:
  print("YES")
else:
  print("NO") (K - 1) <= (N - 1) // 2 K - 1 K 1 (N - 1) // 2 N - 1 N 1 2 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 (K - 1) <= (N - 1) // 2:
  print("YES")
else:
  print("NO")