# ABC086-C

read N

set 0 0 0
for (( i = 0; i < N; i++ )); do
    read t x y
    dt=$(( t - $1 ))
    d=$(( (x > $2 ? x - $2 : $2 - x) +
          (y > $3 ? y - $3 : $3 - y) ))
    if (( d > dt || d % 2 != dt % 2 )); then
        echo No
        exit
    fi
    set $t $x $y
done

echo Yes
