#!/usr/local/gnu/bin/bash
read n
x0=0
y0=0
t0=0
flag=1
for i in `seq $n`
do
    read t x y
    dx=`echo $((x-x0)) | tr -d -`
    dy=`echo $((y-y0)) | tr -d -`
    dt=$((t-t0))
    if((dx+dy>dt||(dx+dy-dt)%2!=0))
    then
        flag=0
        break
    fi
    x0=$x
    y0=$y
    t0=$t
done
((flag)) && echo Yes || echo No
