input() ni, nj = map(int, input().split()) zi, zj = map(int, input().split()) print("Yes" if abs(ni - zi) + abs(nj - zj) & 1 else "No")