n, k = map(int, input().split())
# 当n < 2时,无法形成任何对; 当n >= 2时,最大可能的对数是n-1
if n >= 2 and k <= n-1:
    print('YES')
else:
    print('NO')