N, M = map(int, input().split()) X, Y = map(lambda x: int(x)-1, input().split()) X = X%M if (X//M)%2==0 else M-(X%M)-1 Y = Y%M if (Y//M)%2==0 else M-(Y%M)-1 print("YES" if X==Y else "NO")