n, k = map(int, input().split()) max_pairs = (n - 1) # 计算最大可能的对数 if k <= max_pairs: print("YES") else: print("NO")