Ответ: var  x1, y1, x2, y2: longint; begin  readln(x1, y1, x2, y2);  if ((y1 = y2) and (abs(x2 — x1) = 1)) or ((x1 = x2) and (abs(y2 — y1) = 1)) or ((abs(y1 — y2) = 1) and (abs(x2 — x1) = 1)) then    write(‘YES’)  else    write(‘NO’); end.

Ответ: var x1,y1,x2,y2:byte;begin  Readln(x1,y1,x2,y2);  if ((abs(x1-x2)<=1) and (abs(y1-y2)<=1)) then Writeln(‘YES’)  else Writeln(‘NO’)end.