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