const main = input => {
  const arr = input.split('\n')
  const count = parseInt(arr.shift(), 10)
  
  let result = true
  
  arr.reduce((store,data) => {
  	const arr = data.split(' ')
    const time = parseInt(arr[0], 10)
    const x = parseInt(arr[1], 10)
    const y = parseInt(arr[2], 10)
    const sum = Math.abs((x - store[0]) + (y - store[1]))
    
    if (sum > time && result === true) {
      result = false
    }
    
    return [x, y]
  }, [0, 0])
  
  if (result) {
    console.log('Yes')
  } esle {
  	console.log('No')
  }
}

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