<?php

$plans = [
    0 => [0, 0, 0]
];

fscanf(STDIN, "%d", $n);

for ($i = 1; $i <= $n; ++$i) {
    list($t, $tx, $ty) = fscanf(STDIN, "%d %d %d");
    list($pt, $px, $py) = $plans[$i - 1];

    $movable = $t - $pt;
    $moved = abs($tx - $px) + abs($ty - $py);
    if ($movable >= $moved && ($movable - $moved) % 2 == 0) {
        $plans[$i] = [$t, $tx, $ty];
    } else {
        echo "No" .PHP_EOL;
        return;
    }
}

echo "Yes" . PHP_EOL;