# ABC086-C

read # N

(
    while read t1 x1 y1; do
        echo $((t1-t0)) $((x0-x1)) $((y0-y1))
        t0=$t1 x0=$x1 y0=$y1
    done
) | (
    while read dt dx dy; do
        echo ${dt#-} ${dx#-} ${dy#-}
    done
) | (
    while read dt dx dy; do
        if (( dx + dy > dt || (dx + dy) % 2 != dt % 2 )); then
            echo No
            exit
        fi
    done

    echo Yes
)
