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