n,m=gets.split.map(&:to_i) x,y=gets.split.map(&:to_i) cx=x%(2*m) cx=m+m-cx+1 if cx>m cy=y%(2*m) cy=m+m-cy+1 if cy>m puts cx==cy ? "YES" : "NO"