"use strict"
function Main(input) {
  input = input.trim().split('\n');
  const N = Number(input[0].trim())
  const T = input.slice(-N);

  let ret = 'Yes';
  for(let i=0; i<N; i++){
    let arr = T[i].trim().split(' ').map(Number);
    let t = arr[0];
    let x = arr[1];
    let y = arr[2];
    
    if(t%2 !== 0 && (x+y)%2 === 0){
      ret = 'No';
    }

    if(t%2 === 0 && (x+y)%2 !== 0){
      ret = 'No';
    }

    if((x+y) > t){
      ret = 'No';
    }
  }

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