# -*- coding: utf-8 -*-



t, x, y = 0, 0, 0



N = int(eval(input()))

for _ in range(N):

    t_next, x_next, y_next = list(map(int, input().split()))



    diff_kyori = abs(x - x_next) + abs(y - y_next)

    diff_time = t_next - t



    if diff_kyori > diff_time:  # 距離が時間より大きい

        print('No')

        exit(0)

    if (diff_kyori - diff_time) % 2 == 1:  # 距離と時間の差

        print('No')

        exit(0)



    t, x, y = t_next, x_next, y_next



print('Yes')

import sys

_input = sys.stdin.readline





def resolve():

    N = int(_input())

    T = [list(map(int, _input().split())) for _ in range(N)]

    t, x, y = 0, 0, 0

    for next_t, next_x, next_y in T:

        diff_xy = abs(x - next_x) + abs(y - next_y)

        diff_t = next_t - t

        if diff_xy > diff_t or (diff_xy % 2 != diff_t % 2):

            print('No')

            exit(0)

    print('Yes')





if __name__ == '__main__':

    resolve()
# -*- coding: utf-8 -*-
t, x, y = 0, 0, 0
N = int(eval(input()))
for _ in range(N):
    t_next, x_next, y_next = list(map(int, input().split()))
    diff_kyori = abs(x - x_next) + abs(y - y_next)
    diff_time = t_next - t
    if diff_kyori > diff_time:  # 距離が時間より大きい
        print("No")
        exit(0)
    if (diff_kyori - diff_time) % 2 == 1:  # 距離と時間の差
        print("No")
        exit(0)
    t, x, y = t_next, x_next, y_next
print("Yes")

import sys

_input = sys.stdin.readline


def resolve():
    N = int(_input())
    T = [list(map(int, _input().split())) for _ in range(N)]
    t, x, y = 0, 0, 0
    for next_t, next_x, next_y in T:
        diff_xy = abs(x - next_x) + abs(y - next_y)
        diff_t = next_t - t
        if diff_xy > diff_t or (diff_xy % 2 != diff_t % 2):
            print("No")
            exit(0)
    print("Yes")


if __name__ == "__main__":
    resolve()

-# -*- coding: utf-8 -*- -t, x, y = 0, 0, 0 -N = int(eval(input())) -for _ in range(N): -    t_next, x_next, y_next = list(map(int, input().split())) -    diff_kyori = abs(x - x_next) + abs(y - y_next) -    diff_time = t_next - t -    if diff_kyori > diff_time:  # 距離が時間より大きい -        print("No") -        exit(0) -    if (diff_kyori - diff_time) % 2 == 1:  # 距離と時間の差 -        print("No") -        exit(0) -    t, x, y = t_next, x_next, y_next -print("Yes") +import sys + +_input = sys.stdin.readline + + +def resolve(): +    N = int(_input()) +    T = [list(map(int, _input().split())) for _ in range(N)] +    t, x, y = 0, 0, 0 +    for next_t, next_x, next_y in T: +        diff_xy = abs(x - next_x) + abs(y - next_y) +        diff_t = next_t - t +        if diff_xy > diff_t or (diff_xy % 2 != diff_t % 2): +            print("No") +            exit(0) +    print("Yes") + + +if __name__ == "__main__": +    resolve()