import scala.util.control.Breaks

object Main{
  def main(args: Array[String]) {
    val sc = new java.util.Scanner(System.in)
    val n = sc.nextInt
    val list = Seq.fill(n, 3)(sc.nextInt)

    val time = 0 +: list.map{ l => l(0) }
    val dist = 0 +: list.map{ l => l(1) + l(2) }

    var flag = true
    (0 until n).foreach{ i =>
      val time_diff = time(i + 1) - time(i)
      val dist_diff = Math.abs(dist(i + 1) - dist(i))
      if (time_diff < dist_diff || time_diff % 2 != dist_diff % 2)
        flag = false
    }
    if (flag)
      println("Yes")
    else
      println("No")
  }
}