a, b = map(int, input().split())
c=a-1#解的个数
if b<=c:
    print('YES')
else:
    print('NO')