import Control.Monad

main = do
  n <- readLn
  xy <- ([0, 0, 0] :) . map (map read . words) <$> replicateM n getLine
  putStrLn $ if and (g f xy) then "Yes" else "No"

f :: [Int] -> [Int] -> Bool
f [ax, bx, cx] [ay, by, cy]
  = let distance = abs(by - bx) + abs(cy - cx)
        time = ay - ax
     in (distance <= time) && (distance `mod` 2 == time `mod` 2)

g :: ([Int] -> [Int] -> Bool) -> [[Int]] -> [Bool]
g _ [_] = []
g f (x:y:xs) = f x y : g f (y:xs)