Sponsored
Use these hints if you're stuck. Try solving on your own first.
(x, y) is valid if and only if they have different parities.
Solve with full IDE support and test cases