#!/usr/bin/python3

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



import numpy as np



N = int(eval(input()))

prev_dst = [0,0,0]



for n in range(N):

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

    a = (t - prev_dst[0]) - (np.abs(prev_dst[1]-x) + np.abs(prev_dst[2]-y))

    if a >= 0 and a % 2 == 0:

        prev_dst = [t, x, y]

    else:

        print("No")

        exit(0)



print("Yes")



#!/usr/bin/python3

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



N = int(eval(input()))

prev_dst = [0,0,0]



for n in range(N):

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

    a = (t - prev_dst[0]) - (abs(prev_dst[1]-x) + abs(prev_dst[2]-y))

    if a >= 0 and a % 2 == 0:

        prev_dst = [t, x, y]

    else:

        print("No")

        exit(0)



print("Yes")



#!/usr/bin/python3
# -*- coding: utf-8 -*-
import numpy as np

N = int(eval(input()))
prev_dst = [0, 0, 0]
for n in range(N):
    t, x, y = list(map(int, input().split(" ")))
    a = (t - prev_dst[0]) - (np.abs(prev_dst[1] - x) + np.abs(prev_dst[2] - y))
    if a >= 0 and a % 2 == 0:
        prev_dst = [t, x, y]
    else:
        print("No")
        exit(0)
print("Yes")

#!/usr/bin/python3
# -*- coding: utf-8 -*-
N = int(eval(input()))
prev_dst = [0, 0, 0]
for n in range(N):
    t, x, y = list(map(int, input().split(" ")))
    a = (t - prev_dst[0]) - (abs(prev_dst[1] - x) + abs(prev_dst[2] - y))
    if a >= 0 and a % 2 == 0:
        prev_dst = [t, x, y]
    else:
        print("No")
        exit(0)
print("Yes")

-import numpy as np - -    a = (t - prev_dst[0]) - (np.abs(prev_dst[1] - x) + np.abs(prev_dst[2] - y)) +    a = (t - prev_dst[0]) - (abs(prev_dst[1] - x) + abs(prev_dst[2] - y))