N = int(input())
t0 = 0
x0 = 0
y0 = 0
for i in range(0, N):
    t1, x1, y1 = map(int, input().split())
    indicator = (t1-t0)-abs(x1-x0)-abs(y1-y0)
    if indicator<0 or indicator%2==1:
        print("No")
        break
    elif i==N-1:
        print("Yes")
        break
    t0 = t1
    x0 = x1
    y0 = y1
