import java.util.*

fun main(args: Array<String>) {
  val sc = Scanner(System.`in`)
  val n = sc.nextInt()
  val txy = (1..n).map { Triple(sc.nextInt(), sc.nextInt(), sc.nextInt()) }

  var preT = 0
  var preX = 0
  var preY = 0

  for (txyi in txy) {
    val t = txyi.first
    val x = txyi.second
    val y = txyi.third

    val time = t - preT
    val distX = Math.abs(x - preX)
    val distY = Math.abs(y - preY)

    val dist = distX + distY
    if (time < dist) {
      println("No")
      return
    }

    if (time % 2 != dist % 2) {
      println("No")
      return
    }


    preT = t
    preX = x
    preY = y
  }

  println("Yes")

}
