N, K = map(int, input().split())
temp = -1
if N % 2 != 0:
  temp = (N+1)//2
else:
  temp = N // 2
if K > temp:
  print('NO')
else:
  print('YES') N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K temp = -1 temp -1 if N % 2 != 0:
  temp = (N+1)//2
else:
  temp = N // 2 N % 2 != 0 N % 2 N 2 0 temp = (N+1)//2 temp (N+1)//2 N+1 N 1 2 temp = N // 2 temp N // 2 N 2 if K > temp:
  print('NO')
else:
  print('YES') K > temp K temp print('NO') print 'NO' print('YES') print 'YES' N, K = map(int, input().split()) map(int, input().split()) N temp = N // 2 N // 2 temp temp = (N+1)//2 (N+1)//2 temp K = map(int, input().split()) map(int, input().split()) K temp = -1 -1 temp
N, K = map(int, input().split())
temp = -1
if N % 2 != 0:
  temp = (N+1)//2
else:
  temp = N // 2
if K > temp:
  print('NO')
else:
  print('YES')