import sys

N = int(input())
old_t = 0
old_x = 0
old_y = 0
for i in sys.stdin:
    a = list(map(int, i.split(' ')))
    t = a[0]
    x = a[1]
    y = a[2]
    d = abs(x - old_x) + abs(y-old_y)
    T = t - old_t
    if (T % 2 != d % 2):
        print('No')
        sys.exit(0)
    if (T <= d):
        print('No')
        sys.exit(0)
    old_t = t
    old_x = x
    old_y = y
print('Yes')