object Main extends App {
	// your code goes here
    def h(c:Int, ub:Int):Boolean = {
      if (c>=ub){true} else {
        val strAry = io.StdIn.readLine().split(' ')
        (strAry(0).toLong, strAry(1).toLong, strAry(2).toLong) match {
          case (t, x, y) if (x.abs + y.abs) > t.abs => false
          case (t, x, y) if ((x.abs + y.abs - t.abs)&1) == 1 => false
          case (t, x, y) => h(c+1, ub)
        }
      }
    }
  
   val n = io.StdIn.readLine().toInt
   h(0, n) match {
      case true => println("Yes")
      case false => println("No")
    }
}