program pil_3_29_h(input,output);
type position = 1..8;
var
  x1, y1, x2, y2 : position;
begin
	write('Input horse position : ');
  read(x1, y1);
	write('Input his possibly new position : ');
  read(x2, y2);

  if (abs(x1-x2)=2)and(abs(y1-y2)=1) or (abs(x1-x2)=1)and(abs(y1-y2)=2)
	    then WriteLn('true')
      else WriteLn('false');
end.