CodeLab Academy 📞 9936 6696
← List Python · Level 3: Conditions (if) Code · 30 points ← #225 #227 →

#226. Rook move

Print `Yes` if a chess rook can go from (x1, y1) to (x2, y2) in one move, otherwise `No` (the squares are different). ### Input One line: x1 y1 x2 y2 (1-8). ### Output `Yes` or `No`.

Examples

Input
3 4 7 4
Output
Yes
Input
1 6 4 5
Output
No

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!