#!/bin/env python3



N = int(eval(input()))



t_prev = x_prev = y_prev = 0

for i in range(N):

    t_i, x_i, y_i = list(map(int, input().split()))



    if (x_i+y_i)> t_i:

        print("No")

        exit()

    elif (x_i+y_i) %2 != t_i%2 :

        print("No")

        exit()

    elif (abs(x_i - x_prev) + abs(y_i - y_prev)) > (t_i - t_prev):

        print("No")

        exit()



print("Yes")

#!/bin/env python3



N = int(eval(input()))



#t_prev = x_prev = y_prev = 0

for i in range(N):

    t_i, x_i, y_i = list(map(int, input().split()))



    if (x_i+y_i)> t_i:

        print("No")

        exit()

    elif (x_i+y_i) %2 != t_i%2 :

        print("No")

        exit()

    #elif (abs(x_i - x_prev) + abs(y_i - y_prev)) > (t_i - t_prev):

    #    print("No")

    #    exit()



print("Yes")

#!/bin/env python3
N = int(eval(input()))
t_prev = x_prev = y_prev = 0
for i in range(N):
    t_i, x_i, y_i = list(map(int, input().split()))
    if (x_i + y_i) > t_i:
        print("No")
        exit()
    elif (x_i + y_i) % 2 != t_i % 2:
        print("No")
        exit()
    elif (abs(x_i - x_prev) + abs(y_i - y_prev)) > (t_i - t_prev):
        print("No")
        exit()
print("Yes")

#!/bin/env python3
N = int(eval(input()))
# t_prev = x_prev = y_prev = 0
for i in range(N):
    t_i, x_i, y_i = list(map(int, input().split()))
    if (x_i + y_i) > t_i:
        print("No")
        exit()
    elif (x_i + y_i) % 2 != t_i % 2:
        print("No")
        exit()
    # elif (abs(x_i - x_prev) + abs(y_i - y_prev)) > (t_i - t_prev):
    #    print("No")
    #    exit()
print("Yes")

-t_prev = x_prev = y_prev = 0 +# t_prev = x_prev = y_prev = 0 -    elif (abs(x_i - x_prev) + abs(y_i - y_prev)) > (t_i - t_prev): -        print("No") -        exit() +    # elif (abs(x_i - x_prev) + abs(y_i - y_prev)) > (t_i - t_prev): +    #    print("No") +    #    exit()