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

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