n,k = list(map(int,input().split())) ls = [] for i in range(1,n+1): if n-i >= 1: ls.append((i,n-i)) if len(ls) >= k: print('YES') else: print('NO')