import scala.io.StdIn
object Main extends App {
  val input = io.Source.stdin.getLines().mkString("\n")
  val list = input.split("\n").drop(1).map(_.split(" ").map(_.toInt)).map{ case Array(t,x,y) => (t,x,y)}.toList

  if (((0,0,0)::list).zip(list).forall { case ((t,x,y),(nextT,nextX,nextY)) => {
    val dt = nextT - t;
    val dist = (nextX - x).abs + (nextY - y).abs;
    dt >= dist && dist % 2 == dt % 2
  }}) {
    println("Yes")
  } else {
    println("No")
  }
}
