[a, b] = list(input().split().map(int)) print("YES" if a < b else "NO")