n = int(input())
x,y = 0, 0
tf = 0
hantei = False
for i in range(n):
    t,a,b = list(map(int, input().split()))
    if (a + b) > t or (a + b + t) % 2 == 1:
        print('No')
        exit()
print('Yes')