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