object Main extends App {
  val n = io.StdIn.readLine.toInt
  val ans = Iterator.continually(io.StdIn.readLine)
    .take(n)
    .map(_.split(" ").map(_.toInt))
    .map(in => {
      val Array(t, x, y) = in
      if ((x + y > t) || ((t-x-y) & 1) == 1) false else true
    })
    .takeWhile(_ == true)
    .toArray

  println(if (ans.size == n) "Yes" else "No")
}