x1 = int(input())
y1 = int(input())
x2 = int(input())
y2 = int(input())
if y1 < y2:  # Движение вверх по полю
#  проверка диагонали
    if (x1 == y1 and x2 == y2) or (abs(x2-x1) == abs(y2-y1)):
        print('YES')
    elif (x2 - x1) % 2 == 0 and (y2 - y1) % 2 == 0:
        print('YES')
    else:
        print('NO')
else:
    print('NO')

7ac322bb9eb90d48fadbc91d3ed89a79ce5ebb27
<mask token>

<mask token>
if y1 < y2:
    if x1 == y1 and x2 == y2 or abs(x2 - x1) == abs(y2 - y1):
        print('YES')
    elif (x2 - x1) % 2 == 0 and (y2 - y1) % 2 == 0:
        print('YES')
    else:
        print('NO')
else:
    print('NO')

x1 = int(input())
y1 = int(input())
x2 = int(input())
y2 = int(input())
if y1 < y2:
    if x1 == y1 and x2 == y2 or abs(x2 - x1) == abs(y2 - y1):
        print('YES')
    elif (x2 - x1) % 2 == 0 and (y2 - y1) % 2 == 0:
        print('YES')
    else:
        print('NO')
else:
    print('NO')

x1 = int(input())
y1 = int(input())
x2 = int(input())
y2 = int(input())
if y1 < y2:  # Движение вверх по полю
#  проверка диагонали
    if (x1 == y1 and x2 == y2) or (abs(x2-x1) == abs(y2-y1)):
        print('YES')
    elif (x2 - x1) % 2 == 0 and (y2 - y1) % 2 == 0:
        print('YES')
    else:
        print('NO')
else:
    print('NO')
