# ABC086-C
solve() {
    read
    while : ; do
        read t1 x1 y1 || return 0
        (( d = (t1 - t2) - (x1 > x2 ? x1 - x2 : x2 - x1) - (y1 > y2 ? y1 - y2 : y2 - y1),
           d < 0 || d % 2 )) && return 1
        read t2 x2 y2 || return 0
        (( d = (t2 - t1) - (x1 > x2 ? x1 - x2 : x2 - x1) - (y1 > y2 ? y1 - y2 : y2 - y1),
           d < 0 || d % 2 )) && return 1
    done
}
solve < <(head -n 75001) && echo Yes || echo No
