import scala.io.StdIn

object Main extends App {
  val n = StdIn.readLine().toInt
  var i = 0
  var judge = true
  var before = Array.fill[Int](3)(0)
  while (judge && i < n) {
    val ts = StdIn.readLine().split(' ').map(_.toInt)
    val ti = ts(0) - before(0)
    val di = scala.math.abs(before(1) - ts(1)) + scala.math.abs(before(2) - ts(2))
    judge = ti >= di && ti % 2 == di % 2
    before = ts
    i += 1
  }

  println(if (judge) "Yes" else "No")
}
