import java.util.Scanner

object Main {
  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val inum = sc.nextInt()
    var flag = true

    for (i <- 1 to inum) {
      var num, numx, numy = sc.nextInt
      if (num >= (numx + numy) && flag) {
        if ((num % 2 == 0 && (numx + numy) % 2 == 0) | (num % 2 == 1 && (numx + numy) % 2 == 1)) flag=true else flag=false
      }else flag=false
    }

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