# ABC086-C

read N

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

echo Yes
