h, w = map(int, input().split()) sx, sy = map(int, input().split()) gx, gy = map(int, input().split()) print("Yes" if (sx + sy - gx - gy) % 2 == 1 else "No")