# ABC086-C
solve() (
    set -e
    read
    while read t1 x1 y1; do
        (( d = (t1 - t2) - (x1 > x2 ? x1 - x2 : x2 - x1) - (y1 > y2 ? y1 - y2 : y2 - y1),
           d >= 0 && d % 2 == 0 ))
        read t2 x2 y2 || return
        (( d = (t2 - t1) - (x1 > x2 ? x1 - x2 : x2 - x1) - (y1 > y2 ? y1 - y2 : y2 - y1),
           d >= 0 && d % 2 == 0 ))
    done
)

solve && echo Yes || echo No
