# ABC086-C

declare -r PREPROCESS='
BEGIN {
    t = 0; x = 0; y = 0;
}
{
    print ($1 - t) " " ($2 > x ? $2 - x : x - $2) " " ($3 > y ? $3 - y : y - $3)
    t = $1; x = $2; y = $3;
}'

read # N
while read dt dx dy; do
    if (( dx + dy > dt || (dx + dy) % 2 != dt % 2 )); then
        echo No
        exit
    fi
done < <(awk "${PREPROCESS}")

echo Yes    
