Alice and Bob are playing a board game. They have boards and two arrays and of length . The value of each cell in the row and row is . Alice asks questions to Bob. In each question, Alice provides two cells and . She asks the following questions to Bob:
Are there any paths from to that contains the same parity as and .
Note: Bob can move from one cell to 8 neighbor cells in each step.
Input format
Output format
For each query, if there exists a path (for example, ) from to that contains the same parity as and , then print YES. If the parity of A and B are different, then print NO.
Constraints
In the first query, we can move from to then to .
In the second query, the parity of two cells is different and therefore there isn't such a way.