let rec routable (pTxy: int [], txy: int []) =
    let [|pt; px; py|] = pTxy
    let [|t; x; y|] = txy
    ((px + py) % 2 = pt % 2) && ((x + y) % 2 = t % 2) && (abs (x - px) + abs (y - py)) <= t - pt

let n = stdin.ReadLine() |> int
let txys = Seq.append [[|0; 0; 0|]] [for i in 1..n do yield stdin.ReadLine().Split(' ') |> Array.map int]
txys
|> Seq.pairwise
|> Seq.forall routable
|> fun r -> if r then "Yes" else "No"
|> printfn "%s"
