object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val n = sc.nextInt()
  val txy = (0, 0, 0) :: List.fill(n)((sc.nextInt(), sc.nextInt(), sc.nextInt()))
  val ok = txy.sliding(2).forall{ case List((t1, x1, y1), (t2, x2, y2)) =>
    val t = t2 - t1
    val d = (x2 - x1).abs + (y2 - y1).abs
    d <= t && (t - d) % 2 == 0
  }
  println(if (ok) "Yes" else "No")
}
