object Main extends App {
	import scala.math._

	case class Point(val x: Int, val y: Int, val t: Int)

	def test(A: Point, B: Point): Int = abs(B.x - A.x) + abs(B.y - A.y)

	val n = scala.io.StdIn.readInt
	val a = new Array[Point](n)
	for(i<-0 until n){
		val tp = scala.io.StdIn.readLine.split(" ").map(_.toInt)
		a(i) = Point(tp(1), tp(2), tp(0))
	}

	var flag = true
	var Spoint = Point(0,0,0)
	var Epoint = Point(0,0,0)

	for(i<-0 until n){
		Epoint = a(i)
		val time = test(Spoint, Epoint)
		val delta = Epoint.t - Spoint.t
		if((delta - time)%2 == 1 || time > delta) flag = false
		Spoint = a(i)
	}

	if(flag) println("Yes")
	else println("No")
}