N = int(eval(input()))

t,x,y = 0,0,0

for i in range(N):

    T,X,Y = list(map(int,input().split()))

    d = abs(x-X)+abs(y-Y)

    if (T-t)-d >= 0 and ((T-t)-d)%2 == 0:

        t,x,y = T,X,Y

        continue

    else:

        print('No')

        exit()

print('Yes')
import sys

input = sys.stdin.readline

N = int(eval(input()))

t,x,y = 0,0,0

for i in range(N):

    T,X,Y = list(map(int,input().split()))

    d = abs(x-X)+abs(y-Y)

    if (T-t)-d >= 0 and ((T-t)-d)%2 == 0:

        t,x,y = T,X,Y

        continue

    else:

        print('No')

        exit()

print('Yes')
N = int(eval(input()))
t, x, y = 0, 0, 0
for i in range(N):
    T, X, Y = list(map(int, input().split()))
    d = abs(x - X) + abs(y - Y)
    if (T - t) - d >= 0 and ((T - t) - d) % 2 == 0:
        t, x, y = T, X, Y
        continue
    else:
        print("No")
        exit()
print("Yes")

import sys

input = sys.stdin.readline
N = int(eval(input()))
t, x, y = 0, 0, 0
for i in range(N):
    T, X, Y = list(map(int, input().split()))
    d = abs(x - X) + abs(y - Y)
    if (T - t) - d >= 0 and ((T - t) - d) % 2 == 0:
        t, x, y = T, X, Y
        continue
    else:
        print("No")
        exit()
print("Yes")

+import sys + +input = sys.stdin.readline