Determine whether a bishop on a square with given coordinates (row and column) attacks a piece on another specified square.
Four numbers are entered: the coordinates of the bishop and the coordinates of another piece. Coordinates are integers from 1 to 8.
Output "YES" if the bishop can capture the piece in one move, otherwise output "NO".
[{'input': '1\n1\n5\n5', 'output': 'YES'}, {'input': '3\n2\n2\n2', 'output': 'NO'}]