object Main extends App {
  val n = io.StdIn.readLine.toInt
  val ans = Iterator.continually(io.StdIn.readLine.split(" "))
    .take(n)
    .forall(in => {
      val c = in(0).toInt - in(1).toInt - in(2).toInt
      if (c >= 0 && (c & 1) == 0) true else false
    })

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