N,M = map(int, input().split()) x,y = map(int, input().split()) if x>y: x,y = y,x if (y-x)%(2*M)==0: print("YES") else: y = y%M x = x%M if (y+x)%M==1: print("YES") else: print("NO")