fun main(args: Array<String>) {
  val sc = if (args.size > 1) java.util.Scanner(java.io.File(args[1])) else java.util.Scanner(System.`in`)
  solve(sc)
}

var ct = 0
var cx = 0
var cy = 0

fun solve(sc: java.util.Scanner) {
  (1..sc.nextInt()).forEach {
    if (!solveOne(sc)) {
      println("No")
      return
    }
  }
  println("Yes")
}

private fun solveOne(sc: java.util.Scanner): Boolean {
  val t = sc.nextInt()
  val x = sc.nextInt()
  val y = sc.nextInt()
  val dt = t - ct
  val d = (x - cx).abs() + (y - cy).abs()
  if (dt < d || (dt % 2) != (d % 2)) {
    return false
  }
  ct = t
  cx = x
  cy = y
  return true
}

private fun Int.abs() = if (this < 0) -this else this
