# ABC086-C

read N

t0=0 x0=0 y0=0
for (( i = 0; i < N; i++ )); do
    read t1 x1 y1
    dx=$(( x0 < x1 ? x1 - x0 : x0 - x1 ))
    dy=$(( y0 < y1 ? y1 - y0 : y0 - y1 ))
    dt=$(( t1 - t0 ))
    if (( dx + dy > dt || (dx + dy) % 2 != dt % 2 )); then
        echo No
        exit
    fi
    t0=$t1 x0=$x1 y0=$y1
done

echo Yes
