function main(input) {
  const args = input.split('\n');
  const nums = args.slice(1);
  const isValid = nums.every((s) => {
    var ss = s.split(' ');
    var t = parseInt(ss[0]);
    var x = parseInt(ss[1]);
    var y = parseInt(ss[2]);
    var sum = x+y;
    return (t >= sum && (t%2) === (sum%2));
  });
  if (isValid) {
    console.log('Yes');
  } else {
    console.log('No');
  }
}

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