N = int(eval(input()))

t, x, y = 0, 0, 0



for _ in range(N):

    ti, xi, yi = list(map(int, input().split()))

    dt, dx, dy = ti - t, abs(xi - x), abs(yi - y)

    t, x, y = ti, xi, yi

    # print(dt, dx, dy)

    # print((dt - (dx + dy)) % 2)

    if ((dt - (dx + dy)) % 2 != 0) or (dx + dy > dt):

        print('No')

        exit()



print('Yes')
import sys

readline = sys.stdin.readline



def main():

    N = int(readline())

    res = 'Yes'

    pre_x, pre_y = 0, 0

    pre = 0

    for _ in range(N):

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

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

        if (t - pre) - cost >= 0 and ((t - pre) - cost) % 2 == 0:

            pre, pre_x, pre_y = t, x, y

        else:

            res = 'No'

            break



    print(res)



if __name__ == '__main__':

    main()
N = int(eval(input()))
t, x, y = 0, 0, 0
for _ in range(N):
    ti, xi, yi = list(map(int, input().split()))
    dt, dx, dy = ti - t, abs(xi - x), abs(yi - y)
    t, x, y = ti, xi, yi
    # print(dt, dx, dy)
    # print((dt - (dx + dy)) % 2)
    if ((dt - (dx + dy)) % 2 != 0) or (dx + dy > dt):
        print("No")
        exit()
print("Yes")

import sys

readline = sys.stdin.readline


def main():
    N = int(readline())
    res = "Yes"
    pre_x, pre_y = 0, 0
    pre = 0
    for _ in range(N):
        t, x, y = list(map(int, readline().rstrip().split()))
        cost = abs(x - pre_x) + abs(y - pre_y)
        if (t - pre) - cost >= 0 and ((t - pre) - cost) % 2 == 0:
            pre, pre_x, pre_y = t, x, y
        else:
            res = "No"
            break
    print(res)


if __name__ == "__main__":
    main()

-N = int(eval(input())) -t, x, y = 0, 0, 0 -for _ in range(N): -    ti, xi, yi = list(map(int, input().split())) -    dt, dx, dy = ti - t, abs(xi - x), abs(yi - y) -    t, x, y = ti, xi, yi -    # print(dt, dx, dy) -    # print((dt - (dx + dy)) % 2) -    if ((dt - (dx + dy)) % 2 != 0) or (dx + dy > dt): -        print("No") -        exit() -print("Yes") +import sys + +readline = sys.stdin.readline + + +def main(): +    N = int(readline()) +    res = "Yes" +    pre_x, pre_y = 0, 0 +    pre = 0 +    for _ in range(N): +        t, x, y = list(map(int, readline().rstrip().split())) +        cost = abs(x - pre_x) + abs(y - pre_y) +        if (t - pre) - cost >= 0 and ((t - pre) - cost) % 2 == 0: +            pre, pre_x, pre_y = t, x, y +        else: +            res = "No" +            break +    print(res) + + +if __name__ == "__main__": +    main()