'use strict'

function main(input) {
  const inputList = input.split('\n');
  const n = inputList[0]
  const list = inputList.slice(1)
  let result = true 

  let prevt = 0
  let prevx = 0
  let prevy = 0
  let nextt = 0
  let nextx = 0
  let nexty = 0

  for (let i=0; i<list.length; i++) {
    const tmpList = list[i].split(' ')
    nextt = tmpList[0]
    nextx = tmpList[1]
    nexty = tmpList[2]

    const difft = nextt - prevt
    const diffx = nextx - prevx 
    const diffy = nexty - prevy
    const tmp = difft - (diffx+diffy)
    if ( tmp<0 || tmp%2 === 1) {
      result = false 
      break
    }

    prevt = nextt 
    prevx = nextx 
    prevy = nexty
  }

  if (result) {
    console.log('Yes')
  } else {
    console.log('No')
  }
}

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