import scala.util.control.Breaks._
import scala.math.abs

object Main {
  def main(args:Array[String]) = {
    val sc = new java.util.Scanner(System.in)
    val n = sc.nextInt
    val txys = List(0, 0, 0) :: List.fill(n, 3)(sc.nextInt)

    var possible = true
    breakable { for (i <- 0 until n) {
      val List(t0, x0, y0) = txys(i)
      val List(t1, x1, y1) = txys(i + 1)
      val res = t1 - t0 - (abs(x1 - x0) + abs(y1 - y0))
      if (res < 0 || res%2 != 0) {
        possible = false
        break
      }
    } }
    println(if (possible) "Yes" else "No")
  }
}
