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