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