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