function Main(input){
	input = input.split("\n");
  var N = input[0]*1;
  var t = 0;
  var x = 0;
  var y = 0;
  for(var i = 1; i <= N; i++){
  	var h = input[i].split(" ");
  	var nt = h[0]*1;
    var nx = h[1]*1;
    var ny = h[2]*1;
    
    var dt = nt - t;
    var dx = Math.abs(x-nx);
    var dy = Math.abs(y-ny);
    
    var amari = dt - dx - dy;
    
    if(amari < 0){
    	return "No";
    }
    if(amari % 2 != 0){
    	return "No";
    }
    
    t = nt;
    x = nx;
    y = ny;
  }
  return "Yes";
}

console.log(Main(require("fs").readFileSync("/dev/stdin", "utf8")));