import Control.Monad
main=do
 n<-readLn
 t<-replicateM n (map read.words<$>getLine)
 putStrLn(f n ([0,0,0]:t))
  where f 0 _ = "Yes"
        f n t = if(g (t!!0) (t!!1))then(f(n-1)(tail t))else"No"
        g x y = h ((y!!0)-(x!!0)) ((abs((y!!1)-(x!!1)))+(abs((y!!2)-(x!!2))))
        h t d = if t<d||(mod(t-d)2)==1 then False else True