# ABC086-C

read N

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

echo Yes
