import           Control.Monad (replicateM)

main :: IO ()
main = do
    n <- readLn :: IO Int
    ts <- replicateM n $ do
        [t, x, y] <- getInts
        return (t, (x, y))
  --  print ts
    putStrLn $ if solve ts then "Yes" else "No"

getInts :: IO [Int]
getInts = map read . words <$> getLine

solve ts = go ts 0 (0, 0)
    where
      go [] _ _ = True
      go (l:s) n (x, y) = let (t, (x', y')) = l
                              r = t - n
                              d = abs (x-x') + abs (y-y') in
                              if r >= d && (r - d) `mod` 2 == 0
                              then go s t (x', y')
                              else False

