import java.util.Scanner

import scala.annotation.tailrec

object Main extends App {
  val sc = new Scanner(System.in)
  val N = sc.nextInt
  val es = Element(0, Position(0, 0)) +: Seq.fill(N)(Element(sc.nextInt, Position(sc.nextInt, sc.nextInt)))

  println(if (solve(es)) "Yes" else "No")

  @tailrec
  private[this] def solve(es: Seq[Element]): Boolean = es match {
    case h +: n +: rest =>
      h.validNext(n) && solve(n +: rest)
    case _ => true
  }
}

case class Element(t: Int, p: Position) {
  def validNext(destination: Element): Boolean = {
    val distance = p.distance(destination.p)
    val dt = destination.t - t
    if (distance > dt) false
    else if (dt - distance % 2 == 0) true
    else false
  }
}

case class Position(x: Int, y: Int) {
  def distance(that: Position): Int =
    Math.abs(that.x - x) + Math.abs(that.y - y)
}
