n,m=map(int,input().split()) x,y=map(int,input().split()) x-=1;y-=1 x%=m*2;y%=m*2 print("YES"if x==y or x+y==m*2-1 else"NO")