import math

import sys



n = int(eval(input()))



for i in range(n):

	t,x,y = list(map(int, input().split()))

	d = abs(x)+abs(y)



	if d > t or (d - t) % 2 != 0:

		print('No')

		exit()



print('Yes')

import math

import sys



n = int(eval(input()))



for i in range(n):

	t,x,y = list(map(int, sys.stdin.readline().split()))

	d = abs(x)+abs(y)



	if d > t or (d - t) % 2 != 0:

		print('No')

		exit()



print('Yes')

import math
import sys

n = int(eval(input()))
for i in range(n):
    t, x, y = list(map(int, input().split()))
    d = abs(x) + abs(y)
    if d > t or (d - t) % 2 != 0:
        print("No")
        exit()
print("Yes")

import math
import sys

n = int(eval(input()))
for i in range(n):
    t, x, y = list(map(int, sys.stdin.readline().split()))
    d = abs(x) + abs(y)
    if d > t or (d - t) % 2 != 0:
        print("No")
        exit()
print("Yes")

-    t, x, y = list(map(int, input().split())) +    t, x, y = list(map(int, sys.stdin.readline().split()))