n,m=map(int,input().split()) x,y=map(int,input().split()) print("YES"if x%(2*m)==y%(2*m) else"NO")