Knight

Problem Statement

Determine whether a knight 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 knight and the coordinates of another piece. All coordinates are integers from 1 to 8.

Output

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

Example

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