import sys,math
sys.setrecursionlimit(10**7)
input = sys.stdin.readline
INF = float('inf')
MOD = 10**9+7
dy = [0,1,0,-1]
dx = [1,0,-1,0]
ddy = [0,1,1,1,0,-1,-1,-1]
ddx = [1,1,0,-1,-1,-1,0,1]

n,k = map(int,input().split())
if math.ceil(n/2) >= k:
    print('YES')
else:
    print('NO') import sys,math sys math sys.setrecursionlimit(10**7) sys.setrecursionlimit sys setrecursionlimit 10**7 10 7 input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline INF = float('inf') INF float('inf') float 'inf' MOD = 10**9+7 MOD 10**9+7 10**9 10 9 7 dy = [0,1,0,-1] dy [0,1,0,-1] 0 1 0 -1 dx = [1,0,-1,0] dx [1,0,-1,0] 1 0 -1 0 ddy = [0,1,1,1,0,-1,-1,-1] ddy [0,1,1,1,0,-1,-1,-1] 0 1 1 1 0 -1 -1 -1 ddx = [1,1,0,-1,-1,-1,0,1] ddx [1,1,0,-1,-1,-1,0,1] 1 1 0 -1 -1 -1 0 1 n,k = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k if math.ceil(n/2) >= k:
    print('YES')
else:
    print('NO') math.ceil(n/2) >= k math.ceil(n/2) math.ceil math ceil n/2 n 2 k print('YES') print 'YES' print('NO') print 'NO' input = sys.stdin.readline sys.stdin.readline input n,k = map(int,input().split()) map(int,input().split()) n MOD = 10**9+7 10**9+7 MOD dx = [1,0,-1,0] [1,0,-1,0] dx ddy = [0,1,1,1,0,-1,-1,-1] [0,1,1,1,0,-1,-1,-1] ddy INF = float('inf') float('inf') INF dy = [0,1,0,-1] [0,1,0,-1] dy ddx = [1,1,0,-1,-1,-1,0,1] [1,1,0,-1,-1,-1,0,1] ddx k = map(int,input().split()) map(int,input().split()) k
import sys,math
sys.setrecursionlimit(10**7)
input = sys.stdin.readline
INF = float('inf')
MOD = 10**9+7
dy = [0,1,0,-1]
dx = [1,0,-1,0]
ddy = [0,1,1,1,0,-1,-1,-1]
ddx = [1,1,0,-1,-1,-1,0,1]

n,k = map(int,input().split())
if math.ceil(n/2) >= k:
    print('YES')
else:
    print('NO')