import Control.Monad

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

solve :: [[Int]] -> Bool
solve [a, b] = ispossible a b
solve (a:b:xs) = ispossible a b && solve (b:xs)

ispossible :: [Int] -> [Int] -> Bool
ispossible [t1, x1, y1] [t2, x2, y2] =
  dt >= dx + dy && mod (dt - dx - dy) 2 == 0
    where dt = abs $ t2 - t1
          dx = abs $ x2 - x1
          dy = abs $ y2 - y1
