i = require("fs").readFileSync("/dev/stdin", "utf8").split(/\n/)
c = [0, 0, 0];
i = i.slice(1);
for (a in i) {
    var to = i[a].split(/\s/).map(val => parseInt(val));
    var A = (to[0] - c[0]) - Math.abs(c[1] - to[1]) + Math.abs(c[2] - to[2]);
    if (A >= 0 && A % 2 == 0) {
        c = to;
        continue;

    } else {
        console.log("No");
        return
    }
}
console.log("Yes");
