# ABC086-C

read N
a=(0 0 0)

for (( i = 0; i < N; i++ )); do
    read -a b
    d=$(( (a[1] > b[1] ? a[1] - b[1] : b[1] - a[1]) +
          (a[2] > b[2] ? a[2] - b[2] : b[2] - a[2]) ))
    if (( d > b[0] - a[0] || d % 2 != (b[0] - a[0]) % 2 )); then
        echo No
        exit
    fi
    a=(${b[@]})
done

echo Yes
