import Control.Monad

main = do
  n <- readLn
  txys <- map (map read . words) <$> replicateM n getLine
  putStrLn . showF $ f (map lToTri ([0,0,0]:txys))

showF :: Bool -> String
showF True  = "Yes"
showF False = "No"

lToTri [t,x,y] = (t,x,y)

f :: [(Int,Int,Int)] -> Bool
f [] = True
f [txy] = True
f ((t1,x1,y1):(t2,x2,y2):cs) = (t2-t1) >= ((x2-x1)+(y2-y1)) && ((t2-t1)-((x2-x1)+(y2-y1))) `mod` 2 == 0 && f ((t2,x2,y2):cs)