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