
function Main(input) {
 	// 1行目がinput[0], 2行目がinput[1], …に入る
	//文字列から10進数に変換するときはparseIntを使います
	var N = parseInt(input[0], 10);

   var old_t = 0;
   var old_x = 0;
   var old_y = 0;
  
   var result;
  
   for(var i=1;i<=N;i++){
      var tmp = input[i].split(" ");
      var t = parseInt(tmp[0], 10)
      var x = parseInt(tmp[1], 10)
      var y = parseInt(tmp[2], 10)
      
      var diff_t = t - old_t;
      var diff_x = x - old_x;
      var diff_y = y - old_y;
      
//	  console.log('diff %s %s %s',diff_t,diff_x,diff_y);
      
      var kyori = diff_t - (diff_x + diff_y);
     
//	  console.log('kyori %s',kyori);

      if(kyori < 0){
         result = "No";
      }else{  
	     result = kyori % 2 == 0 ? "Yes":"No"
      }
//	  console.log('result %s',result);
      
      if (result=="No"){
      	break;
      } 
      
      old_t = t;
      old_x = x;
      old_y = y;

   }
  
	//出力
	console.log('%s',result);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").split("\n"));