#!/usr/local/gnu/bin/bash
read n
x0=0
y0=0
t0=0
for i in `seq $n`
do
    read t x y
    ((x>x0)) && dx=$((x-x0)) || dx=$((x0-x))
    ((y>y0)) && dy=$((y-y0)) || dy=$((y0-y))
    dd=$((t-t0-dx-dy))
    if((dd%2!=0||dd<0))
    then
        echo No
        exit
    fi
    x0=$x
    y0=$y
    t0=$t
done
echo Yes