main=do
 getLine
 txy<-map(map read.words).lines<$>getContents
 putStrLn$if f 0 0 0 txy then"Yes"else"No"
f t x y[]=True
f t x y([nt,nx,ny]:txy)
 |(nt-t+nx-x+ny-y)`mod`2==0&&nt-t>=(abs$nx-x)+(abs$ny-y)=f nt nx ny txy
 |otherwise=False