void main()
{
    int n = readln.chomp.to!int;

    int t, x, y;
    bool ok = true;
    foreach (i; 0 .. n)
    {
        int[] tmp = readln.split.to!(int[]);
        int ti = tmp[0], xi = tmp[1], yi = tmp[2];
        int len = abs(xi - x) + abs(yi - y);

        if (ti - t < len)
        {
            ok = false;
        }
        else if ((ti - t) % 2 != len % 2)
        {
            ok = false;
        }

        t = ti, x = xi, y = yi;
    }

    writeln(ok ? "Yes" : "No");
}

import std.stdio;
import std.string;
import std.array;
import std.conv;
import std.algorithm;
import std.range;
import std.math;
import std.numeric;
import std.container;
import std.typecons;
import std.ascii;
import std.uni;