($n,$m)=glob<>;($x,$y)=glob<>; $m*=2; print+($x-$y)%$m==0 || ($x+$y-2)%$m==$m-1 ? YES : NO