import Control.Monad
import Control.Monad.State

type Stat = (Int, Int, Int)

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 = evalState (solve' ass) (0, 0, 0)

solve' :: [[Int]] -> State Stat String
solve' [] = return "Yes"
solve' ([t, x, y]:ass) = do
  (_t, _x, _y) <- get
  let d = sum $ map abs $ [x - _x, y - _y]
  if d <= t - _t && even (t - _t - d) 
    then put (t, x, y) >> solve' ass
    else return "No"



