# ABC086-C

read N

set 0 0 0
for (( i = 0; i < N; i++ )); do
    read line
    set -- $@ $line
    d=$(( ($5 > $2 ? $5 - $2 : $2 - $5) +
          ($6 > $3 ? $6 - $3 : $3 - $6) ))
    if (( d > $4 - $1 || d % 2 != ($4 - $1) % 2 )); then
        echo No
        exit
    fi
    shift 3
done

echo Yes
