package main

import (
	"fmt"
)

func main() {
	var n int
	fmt.Scan(&n)

	var t, x, y int
	currT, currX, currY := 0, 0, 0

	for i := 0; i < n; i++ {
		fmt.Scan(&t, &x, &y)
		dist := abs(x-currX) + abs(y-currY)
		dt := t - currT

		if dt < dist {
			fmt.Println("No")
			return
		}
		if dt&1 != dist&1 {
			fmt.Println("No")
			return
		}

		currT = t
		currX = x
		currY = y
	}
	fmt.Println("Yes")
}

func abs(n int) int {
	if n < 0 {
		return -n
	}
	return n
}
