import Control.Monad

main :: IO
main = do
  n <- readLn
  ass <- replicateM n readInts
  putStr $ solve ass

readInts :: IO [Int]
readInts = map read . words <$> getLine

solve :: [[Int]] -> String
solve ass = solve' ass 0 0 0

solve' :: [[Int]] -> Int -> Int -> Int -> String
solve' [] _ _ _ = "Yes"
solve' ([t, x, y]:ass) s u v
  | d <= t - s && even (t - s - d) = solve' ass t x y
  | otherwise = "No"
  where d = (abs (x - u)) + (abs (y - v))



