Олимпиадный тренинг

Задача 18682. Are the cells of the board the same color?


Задача

Темы:
Given the coordinates of two fields of the chessboard (cell coordinates are 2 numbers from 1 to 8: column number and row number).  Write a program that determines whether these cells on a chessboard are of the same color? 

Input
The input is four numbers separated by a space - the coordinates of the two fields. The first two numbers are the coordinates of the first field, the second two are the coordinates of the second field. In each pair of numbers, the first number is the column number, the second number is the row number. 

Imprint
Display the word YES if they are the same color, and NO otherwise.
 
 
Examples
# Input Output
1 1 1 2 2 YES
2 1 1 1 4 NO