"use strict";

function main(input) {
  input = input.split(/\n/).slice(1);
  input = input.map(v => v.split(/\s/).map(v => ~~v));

  let ans = "Yes"; // 'Yes' or 'No'
  let distance = 0;
  let time = 0;
  let next = { x: 0, y: 0, t: 0 };
  let tmp = { x: 0, y: 0, t: 0 };

  for (let i = 0; i < input.length; i++) {
    next.t = input[i][0];
    next.x = input[i][1];
    next.y = input[i][2];

    time = next.t - tmp.t;

    distance = Math.abs(tmp.x - next.x) + Math.abs(tmp.y - next.y);

    // console.log(time, distance, time % 2, distance % 2)
    if (time < distance || time % 2 !== distance % 2) {
      ans = "No";
      //   break;
    }

    tmp.t = next.t;
    tmp.x = next.x;
    tmp.y = next.y;
  }

  console.log(ans);
}

main(require("fs").readFileSync("/dev/stdin", "utf8"));
