import std.stdio, std.conv, std.string, std.algorithm, std.math, std.functional;

void main() {
    auto N = readln.chomp.to!int;
    int cx = 0, cy = 0;
    int ct = 0;
    bool ok = true;
    foreach (i; 0..N) {
        auto tmp = readln.split.to!(int[]);
        if (!ok) continue;
        auto t = tmp[0];
        auto x = tmp[1];
        auto y = tmp[2];
        auto dt = t - ct;
        auto dx = x - cx;
        auto dy = y - cy;
        auto d = abs(dx) + abs(dy);
        if (d > dt) ok = false;
        if ((dt - d) % 2 == 1) ok = false;
        cx = x;
        cy = y;
        ct = t;
    }
    writeln(ok ? "Yes" : "No");
}
