N, M = map(int, input().split()) X, Y = map(int, input().split()) X = (X - 1) % (2 * M) Y = (Y - 1) % (2 * M) print('YES' if X == Y or X + Y == 2 * M - 1 else 'NO')