import sys

def main():

    n = int(eval(input()))

    txy = []

    for _ in range(n):

        txy.append(tuple(map(int, input().split())))



    t = x = y = 0

    for i1 in range(n):

        txye = txy[i1]

        t, dt = txye[0], txye[0] - t

        x, dx = txye[1], abs(txye[1] - x)

        y, dy = txye[2], abs(txye[2] - y)

        if dt < (dx + dy):

            print('No')

            sys.exit()

        elif dt > (dx + dy) and (dt - dx - dy) % 2 != 0:

            print('No')

            sys.exit()



    print('Yes')





if __name__ == '__main__':

    main()

import sys

read = sys.stdin.read

readlines = sys.stdin.readlines

def main():

    n = int(eval(input()))

    pre_t = 0

    pre_x = 0

    pre_y = 0

    for _ in range(n):

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

        d_dis = abs(x - pre_x) + abs(y - pre_y)

        d_t = abs(t - pre_t)

        if d_dis > d_t:

            print('No')

            sys.exit()

        elif (d_t - d_dis) % 2 == 1:

            print('No')

            sys.exit()

        else:

            pre_t = t

            pre_x = x

            pre_y = y

    print('Yes')



if __name__ == '__main__':

    main()

import sys


def main():
    n = int(eval(input()))
    txy = []
    for _ in range(n):
        txy.append(tuple(map(int, input().split())))
    t = x = y = 0
    for i1 in range(n):
        txye = txy[i1]
        t, dt = txye[0], txye[0] - t
        x, dx = txye[1], abs(txye[1] - x)
        y, dy = txye[2], abs(txye[2] - y)
        if dt < (dx + dy):
            print("No")
            sys.exit()
        elif dt > (dx + dy) and (dt - dx - dy) % 2 != 0:
            print("No")
            sys.exit()
    print("Yes")


if __name__ == "__main__":
    main()

import sys

read = sys.stdin.read
readlines = sys.stdin.readlines


def main():
    n = int(eval(input()))
    pre_t = 0
    pre_x = 0
    pre_y = 0
    for _ in range(n):
        t, x, y = list(map(int, input().split()))
        d_dis = abs(x - pre_x) + abs(y - pre_y)
        d_t = abs(t - pre_t)
        if d_dis > d_t:
            print("No")
            sys.exit()
        elif (d_t - d_dis) % 2 == 1:
            print("No")
            sys.exit()
        else:
            pre_t = t
            pre_x = x
            pre_y = y
    print("Yes")


if __name__ == "__main__":
    main()

+ +read = sys.stdin.read +readlines = sys.stdin.readlines -    txy = [] +    pre_t = 0 +    pre_x = 0 +    pre_y = 0 -        txy.append(tuple(map(int, input().split()))) -    t = x = y = 0 -    for i1 in range(n): -        txye = txy[i1] -        t, dt = txye[0], txye[0] - t -        x, dx = txye[1], abs(txye[1] - x) -        y, dy = txye[2], abs(txye[2] - y) -        if dt < (dx + dy): +        t, x, y = list(map(int, input().split())) +        d_dis = abs(x - pre_x) + abs(y - pre_y) +        d_t = abs(t - pre_t) +        if d_dis > d_t: -        elif dt > (dx + dy) and (dt - dx - dy) % 2 != 0: +        elif (d_t - d_dis) % 2 == 1: +        else: +            pre_t = t +            pre_x = x +            pre_y = y