void main(){
  import std.stdio, std.string, std.conv, std.algorithm;
  import std.math;

  int n; rd(n);
  int cur=0, x=0, y=0;
  while(n--){
    int t, nx, ny; rd(t, nx, ny);
    auto d=(nx-x).abs+(ny-y).abs;
    if(d>(t-cur)){writeln("No"); return;}
    auto r=(t-cur)-d;
    if(r&1){writeln("No"); return;}
    cur=t; x=nx; y=ny;
  }

  writeln("Yes");
}

void rd(T...)(ref T x){
  import std.stdio, std.string, std.conv;
  auto l=readln.split;
  assert(l.length==x.length);
  foreach(i, ref e; x){
    e=l[i].to!(typeof(e));
  }
}
void wr(T...)(T x){
  import std.stdio;
  foreach(e; x) write(e, " ");
  writeln();
}
