#!/usr/local/gnu/bin/bash
read n
while read t0 x0 y0
do
    if((x0>x1))
    then
        ((y0>y1)) && dd=$((t0-t1-x0+x1-y0+y1)) || dd=$((t0-t1-x0+x1-y1+y0))
    else
        ((y0>y1)) && dd=$((t0-t1-x1+x0-y0+y1)) || dd=$((t0-t1-x1+x0-y1+y0))
    fi
    if((dd%2!=0||dd<0))
    then
        echo No
        exit
    fi
    read t1 x1 y1 && : || break
    if((x1>x0))
    then
        ((y1>y0)) && dd=$((t1-t0-x0+x1-y0+y1)) || dd=$((t1-t0-x0+x1-y1+y0))
    else
        ((y1>y0)) && dd=$((t1-t0-x1+x0-y0+y1)) || dd=$((t1-t0-x1+x0-y1+y0))
    fi
    if((dd%2!=0||dd<0))
    then
        echo No
        exit
    fi
done
echo Yes
