import Control.Monad
main = do
  n <- readLn
  xs <- replicateM n $ map read . words <$> getLine :: IO [[Int]]
  let ds = zipWith (zipWith subtract) ([0,0,0] : xs) xs
      ok = all (\[t,x,y] -> t>=x+y && even (t-x-y)) ds
  putStrLn $ if ok then "Yes" else "No"