object Main {
  def main(args: Array[String]): Unit = {
    var prev_place = Array(0, 0, 0)
    val n = io.StdIn.readLine().toInt

    var result = true
    var i = 0
    while (i < n && result == true) {
      val place = io.StdIn.readLine().split(' ').map({ _.toInt })
      val time = place(0) - prev_place(0)
      val move = place.zip(prev_place).map({ case (x, y) => x-y }).drop(1)

      if (move.sum > time)
        result = false

      if ((time + move.sum) % 2 == 1)
        result = false

      prev_place = place
      i += 1
    }

    if (result == true)
      println("Yes")
    else
      println("No")
  }
}
