const main = input => {
  const inputList = input.split('\n')
  const count = parseInt(inputList[0], 10)
  const nums = inputList.slice(1, count + 1)
  
  let result = true

  const result = nums.every(n => {
    const arr = n.split(' ')
    const time = parseInt(arr[0], 10)
    const x = parseInt(arr[1], 10)
    const y = parseInt(arr[2], 10)
    const sum = x + y

    return (
      time >= sum &&
      time%2 === sum%2
    )
  })
  
  if (result) {
    console.log('Yes')
  } else {
  	console.log('No')
  }
}

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