# ABC086-C

read

while read t1 x1 y1; do
    (( dx = x1 - x0, dy = y1 - y0, delta = (t1 - t0) - (dx > 0 ? dx : -dx) - (dy > 0 ? dy : -dy),
       t0 = t1, x0 = x1, y0 = y1, delta < 0 || delta % 2 )) && echo No && exit
done

echo Yes
