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