Do they have the same color?

Given a standard chessboard, we would like to know if two coordinates have the same color.

The input first lists the first coordinates - r1 (row) and c1 (column), and then lists the second coordinates - r2 (row) and c2 (column). Print Yes if they have the same color, and No otherwise.

Hint question

Can you think of a smart way of detecting the color of the current position? Do you notice a pattern when rows and columns change?

Input

Output

1
2
5
2

Yes

Screen Shot 2021-09-17 at 6.14.00 PM.png

Constraints

Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue