import qualified Data.ByteString.Char8 as B
import Control.Monad
import Data.Maybe

main = do
    n <- read <$> getLine :: IO Int
    plans <- replicateM n $ do
        [t, x, y] <- map (fst . fromJust . B.readInt) . B.words <$> B.getLine
        return (t, x, y)
    putStrLn $ if plan (0,0,0) plans then "Yes" else "No"

plan (curT, curX, curY) [] = True
plan (curT, curX, curY) ((t,x,y):plans) = 
    let a = abs (t-curT)
        b = abs (x-curX) + abs (y-curY)
    in if a >= b && ((a - b) `mod` 2) == 0
        then plan (t,x,y) plans
        else False
    