import Data.Char
import Data.List
import qualified Data.ByteString.Char8 as B

main=B.interact$B.pack.f.unfoldr(B.readInt.B.dropWhile isSpace)
f (n:txys) = sol 0 (0,0) n txys
sol _ _ 0 _ = "Yes"
sol t0 (x0,y0) n (t:x:y:txys)
    | dt < d = "No"
    | odd (dt-d) = "No"
    | otherwise = sol t (x,y) (n-1) txys
    where
        d  = abs(x-x0) + abs(y-y0)
        dt = t-t0