n=int(eval(input()))



ans='Yes'

dt=0

cur=0

cur_t=0

dist=0

for i in range(n):

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

	dist=abs(cur-(x+y))

	cur=x+y

	dt=t-cur_t

	cur_t=t

	

	if dist>dt or dt%2!=(dist)%2:

		ans='No'

		break

print(ans)

import sys

input=sys.stdin.readline



n=int(eval(input()))



pt=0

pxy=0

for i in range(n):

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

    dt=t-pt

    dxy=abs(x+y-pxy)

    if dxy>dt or dt%2!=dxy%2:

        print('No')

        exit()

else:

    print('Yes')
n = int(eval(input()))
ans = "Yes"
dt = 0
cur = 0
cur_t = 0
dist = 0
for i in range(n):
    t, x, y = list(map(int, input().split()))
    dist = abs(cur - (x + y))
    cur = x + y
    dt = t - cur_t
    cur_t = t
    if dist > dt or dt % 2 != (dist) % 2:
        ans = "No"
        break
print(ans)

import sys

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

+import sys + +input = sys.stdin.readline -ans = "Yes" -dt = 0 -cur = 0 -cur_t = 0 -dist = 0 +pt = 0 +pxy = 0 -    dist = abs(cur - (x + y)) -    cur = x + y -    dt = t - cur_t -    cur_t = t -    if dist > dt or dt % 2 != (dist) % 2: -        ans = "No" -        break -print(ans) +    dt = t - pt +    dxy = abs(x + y - pxy) +    if dxy > dt or dt % 2 != dxy % 2: +        print("No") +        exit() +else: +    print("Yes")