# ABC086-C

read N

set 0 0 0
for (( i = 0; i < N; i++ )); do
    read ti xi yi
    #dt=$(( ti - $1 ))
    #dx=$(( xi > $2 ? xi - $2 : $2 - xi ))
    #dy=$(( yi > $3 ? yi - $3 : $3 - yi ))
    #if (( dx + dy > dt || (dx + dy) % 2 != dt % 2 )); then
    #    echo No
    #    exit
    #fi
    set $ti $xi $yi
done

echo Yes
