import java.util.Scanner; public class N396 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(),m=sc.nextInt(); int[] x=new int[2];x[0]=sc.nextInt();x[1]=sc.nextInt(); for(int i=0;i<2;i++) { x[i]=x[i]%(2*m);if(x[i]==0){x[i]=2*m;} if(x[i]<=m){}else{x[i]=x[i]%m;if(x[i]==0){x[i]=m;}x[i]=m-x[i]+1;} } if(x[0]==x[1]){System.out.println("YES");}else{System.out.println("NO");} } }