n, m = map(int,input().split()) x, y = map(int,input().split()) a = x % (2*m) b = y % (2*m) print(['NO', 'YES'][a == b or (a+b) % (2*m) == 1])