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 in [1,M+1] else "NO")