import heapq
from sys import stdin
input = stdin.readline

#入力
# s = input()[0:-1]
# n = int(input())
n,k = map(int, input().split())
# a = list(map(int,input().split()))
# a = [int(input()) for i in range()]


# ab=[]
# for i in range():
#     a,b = map(int, input().split())
#     ab.append([a,b])


     
def main():
    if (n+2-1)//2 <k:
        print("NO")
    else:
        print("YES")

if __name__ == '__main__':
    main() import heapq heapq from sys import stdin input = stdin.readline input stdin.readline stdin readline n,k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k def main():
    if (n+2-1)//2 <k:
        print("NO")
    else:
        print("YES") main if (n+2-1)//2 <k:
        print("NO")
    else:
        print("YES") (n+2-1)//2 <k (n+2-1)//2 n+2-1 n+2 n 2 1 2 k print("NO") print "NO" print("YES") print "YES" if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main input = stdin.readline stdin.readline input def main():
    if (n+2-1)//2 <k:
        print("NO")
    else:
        print("YES") def main():
    if (n+2-1)//2 <k:
        print("NO")
    else:
        print("YES") main n,k = map(int, input().split()) map(int, input().split()) n k = map(int, input().split()) map(int, input().split()) k
import heapq
from sys import stdin
input = stdin.readline

#入力
# s = input()[0:-1]
# n = int(input())
n,k = map(int, input().split())
# a = list(map(int,input().split()))
# a = [int(input()) for i in range()]


# ab=[]
# for i in range():
#     a,b = map(int, input().split())
#     ab.append([a,b])


     
def main():
    if (n+2-1)//2 <k:
        print("NO")
    else:
        print("YES")

if __name__ == '__main__':
    main()