import Control.Monad
import System.Random

main :: IO ()
main = do
    n <- fmap read getLine
    as0 <- (replicateM n (map read . words <$> getLine)) :: IO [[Int]]
    let as =  [0,0,0] : as0
    putStrLn $ yesOrHai $ hantei as

hantei :: [[Int]] -> Bool
hantei [] = True
hantei [ x ] = True
hantei (x:y:xs) =   if abs((x!!0)-(y!!0)) >= abs((x!!1 +x!!2)-(y!!1+y!!2)) && abs((x!!0)-(y!!0)-((x!!1 +x!!2)-(y!!1+y!!2))) `mod` 2 == 0 then hantei (y:xs)
                    else False

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