a, b = input().split() print("YES") if eval(f"{a} <~ {b}") else print("NO")