import scala.io.StdIn._

object Main {
    def main(args: Array[String]): Unit = {
        val n = readLine.toInt
        
        val b = (0 until n).map(_ => readLine.split(" ").map(_.toInt)).forall { r =>
            if (r(0) < r(1) + r(2)) {
                false
            } else {
                r(0) % 2 match {
                    case 0 => (r(1) + r(2)) % 2 == 0
                    case 1 => (r(1) + r(2)) % 2 == 1
                }
            }
        }
        
        if (b) {
            println("Yes")
        } else {
            println("No")
        }
    }
}