N,M=map(int,input().split()) X,Y=map(int,input().split()) a=(X-1)%(2*M) b=(Y-1)%(2*M) if a>=M: a=2*M-a-1 if b>=M: b=2*M-b-1 print(["NO","YES"][a==b])