x,y = map(int,input().split())
print("YES" if x-y>=1 else "NO")