import Control.Monad

movable tup =
  let xy1 = tup !! 0
      xy2 = tup !! 1
      t =       (xy2 !! 0) - (xy1 !! 0)
      x = abs $ (xy2 !! 1) - (xy1 !! 1)
      y = abs $ (xy2 !! 2) - (xy1 !! 2)
  in x + y <= t && (t - x - y) `mod` 2 == 0

main = do
  n <- readLn
  ls <- replicateM n getLine
  let xys = [0, 0, 0] : (map (map read . words) $ ls)
  putStrLn $ if all movable $ [  [(xys !! (i-1)), (xys !! i)] | i<-[1..length xys -1 ] ]
             then "Yes"
             else "No"
