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()
import sys

_input = sys.stdin.readline





def resolve():

    N = int(_input())

    t, x, y = 0, 0, 0

    for _ in range(N):

        next_t, next_x, next_y = list(map(int, _input().split()))

        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()
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()

import sys

_input = sys.stdin.readline


def resolve():
    N = int(_input())
    t, x, y = 0, 0, 0
    for _ in range(N):
        next_t, next_x, next_y = list(map(int, _input().split()))
        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()

-    T = [list(map(int, _input().split())) for _ in range(N)] -    for next_t, next_x, next_y in T: +    for _ in range(N): +        next_t, next_x, next_y = list(map(int, _input().split()))