open System

[<AutoOpen>]
module Cin =
    let read f = stdin.ReadLine() |> f
    let reada f = stdin.ReadLine().Split() |> Array.map f

let isOk txy cur =
    let t,x,y = txy
    let ct,cx,cy = cur
    let nt,nx,ny = t+ct, x+cx, y+cy
    nt % 2 = (nx+ny) % 2

let isOk2 txy cur =
    let t,x,y = txy
    let ct,cx,cy = cur
    let dt,dx,dy = t-ct |> abs, x-cx |> abs, y-cy |> abs
    dt >= dx + dy

[<EntryPoint>]
let main _ =
    let N = read int
    let txy = Array.zeroCreate N
    for i in 0..N-1 do
        let [|t;x;y|] = reada int
        txy.[i] <- (t,x,y)

    let mutable cur = (0,0,0)
    let mutable ans = true
    for i in 0..N-1 do
        if isOk txy.[i] cur |> not || isOk2 txy.[i] cur |> not then
            ans <- false
        let _,cx,cy = cur
        let t,x,y = txy.[i]
        cur <- (t,x+cx,y+cy)

    if ans then "Yes" else "No"
    |> printfn "%s"
    0
