N = int(eval(input()))

t = [list(map(int, input().split())) for i in range(N)]



if N == 1:

    if t[0][0] >= t[0][1] + t[0][2]:

        print("Yes")

    else:

        print("No")



else:

    for i in range(1,N):

        a = t[i][0] - t[i-1][0]

        b = abs(t[i][1] - t[i-1][1]) + abs(t[i][2] - t[i-1][2])

        if a >= b and a % 2 == b % 2:

            continue

        else:

            print("No")

            exit()

    print("Yes")
N = int(eval(input()))

pt, px, py = 0, 0, 0

for i in range(N):

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

    a = abs(x - px) + abs(y - py)

    b = t - pt

    if b < a or (a - b) % 2 != 0:

        print("No")

        exit()

    pt, px, py = t, x, y

print("Yes")
N = int(eval(input()))
t = [list(map(int, input().split())) for i in range(N)]
if N == 1:
    if t[0][0] >= t[0][1] + t[0][2]:
        print("Yes")
    else:
        print("No")
else:
    for i in range(1, N):
        a = t[i][0] - t[i - 1][0]
        b = abs(t[i][1] - t[i - 1][1]) + abs(t[i][2] - t[i - 1][2])
        if a >= b and a % 2 == b % 2:
            continue
        else:
            print("No")
            exit()
    print("Yes")

N = int(eval(input()))
pt, px, py = 0, 0, 0
for i in range(N):
    t, x, y = list(map(int, input().split()))
    a = abs(x - px) + abs(y - py)
    b = t - pt
    if b < a or (a - b) % 2 != 0:
        print("No")
        exit()
    pt, px, py = t, x, y
print("Yes")

-t = [list(map(int, input().split())) for i in range(N)] -if N == 1: -    if t[0][0] >= t[0][1] + t[0][2]: -        print("Yes") -    else: +pt, px, py = 0, 0, 0 +for i in range(N): +    t, x, y = list(map(int, input().split())) +    a = abs(x - px) + abs(y - py) +    b = t - pt +    if b < a or (a - b) % 2 != 0: -else: -    for i in range(1, N): -        a = t[i][0] - t[i - 1][0] -        b = abs(t[i][1] - t[i - 1][1]) + abs(t[i][2] - t[i - 1][2]) -        if a >= b and a % 2 == b % 2: -            continue -        else: -            print("No") -            exit() -    print("Yes") +        exit() +    pt, px, py = t, x, y +print("Yes")