import Control.Monad

movable xy1 xy2 =
  let 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
  _ <- getLine
  ls <- ("0 0 0":) . lines <$> getContents
  let xys = map (map read . words) $ ls
  putStrLn $ if all (\i -> movable (xys !! (i-1)) (xys !! i)) $ [1..length xys -1 ]
             then "Yes"
             else "No"