function Main(input){
	input = input.split("\n");
	input.shift();
	for(var i=0;i<input.length;i++){
	    input[i] = input[i].split(" ").map(Number);
	}
	var flag = true;
	for(var i=1;i<input.length;i++){
	    if((Math.abs(input[i-1][1]-input[i][1])+Math.abs(input[i-1][2]-input[i][2]))%2!=(input[i][0]-input[i-1][0])%2||(Math.abs(input[i-1][1]-input[i][1])+Math.abs(input[i-1][2]-input[i][2]))>(input[i][0]-input[i-1][0])){
	      //  console.log((Math.abs(input[i-1][1]-input[i][1])+Math.abs(input[i-1][2]-input[i][2])),(input[i]-input[i-1]))
	        flag = false;
	    }
	}
	console.log(flag?"Yes":"No")
}Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());