Queen

Problem Statement

Determine whether a queen on a square with given coordinates (row and column) attacks a piece on another specified square.

Input

Four numbers are entered: the coordinates of the queen and the coordinates of another piece. Coordinates are integers from 1 to 8.

Output

Output "YES" if the queen can capture the piece in one move, otherwise output "NO".

Example

[{'input': '1\n1\n8\n1', 'output': 'YES'}, {'input': '3\n2\n8\n3', 'output': 'NO'}]