import java.util.Scanner

object Main {
  def main(args: Array[String]) {
    val result = solve(new Scanner(System.in))
    if (result.length > 0) println(result)
  }

  def solve(in: String): String = solve(new Scanner(in))

  def solve(sc: Scanner): String = {
    val N = sc.nextInt
    val txy = Array.fill(N)((sc.nextInt, sc.nextInt, sc.nextInt))

    var prev = (0, 0, 0)
    for (i <- 0 until N) {
      val cur = txy(i)
      val dt = cur._1 - prev._1
      val dxy = Math.abs(cur._2 - prev._2) + Math.abs(cur._3 - prev._3)
      if (!(dt >= dxy && (dt - dxy) % 2 == 0)) {
        return "No"
      }
      prev = cur
    }
    "Yes"
  }
}

