var main = input => {
  const inputList = input.split('\n')
  const count = parseInt(inputList[0], 10)
  const nums = inputList.slice(1, count + 1)
  
  let result = true
  
  nums.forEach(data => {
    if (result) {
      const arr = data.split(' ')
      const time = sumTime - store[0]
      const x = parseInt(arr[1], 10)
      const y = parseInt(arr[2], 10)
      const sum = x + y
  
      if (sum > time || sum%2 !== time%2) {
        result = false
      }
    }
  })

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

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