n, m = map(int, input().split()) x, y = map(int, input().split()) x -= 1 y -= 1 xr = x % (2 * m) yr = y % (2 * m) if xr == yr or xr + yr == 2 * m - 1: print("YES") else: print("NO")