import std.stdio;
import std.conv;
import std.string;
import std.typecons;
import std.algorithm;
import std.array;
import std.range;
import std.math;
import std.regex : regex;
import std.container;
import std.bigint;


void main()
{
  auto n = readln.chomp.to!int;
  int cx, cy, ct;
  auto f = false;
  foreach (_; 0..n) {
    auto x = readln.chomp.split.to!(int[]);
    x[0] -= ct;
    auto d = x[1] - cx + x[2] - cy;

    if (x[0] - d >= 0 && (x[0] - d) % 2 == 0) {
      cx = x[1];
      cy = x[2];
      ct += x[0];
    } else {
      f = true;
      break;
    }
  }
  
  if (f) {
    writeln("No");
  } else {
    writeln("Yes");
  }
}
