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