function Main(input) {
  input = input.split("\n");
  const n = parseInt(input[0],10);
  const txy = [];
  const changeInt = (n) => {
    return parseInt(n, 10);
  };
  for (var i = 0; i < n; i++) {
    txy.push(input[i+1].split(' ').map(changeInt));
  }
  console.log(travelcheck(n,txy)? "Yes":"No")
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));

function travelcheck(n,txy) {
  let dt = 0;
  let dist = 0;
  for (var t_i = 0; t_i < n; t_i++) {
    if (t_i === 0) {
      dt = txy[t_i][0];
      dist = txy[t_i][1] + txy[t_i][2];
    } else {
      dt = txy[t_i][0] - txy[t_i-1][0];
      dist = Math.abs(txy[t_i][1] - txy[t_i-1][1]) + Math.abs(txy[t_i][2] - txy[t_i-1][2]);
    }
    if (dist > dt) {
      return false;
    } else if (dist % 2 !== dt % 2) {
      return false;
    }
  }
  return true;
}
