n = int(input())
now=0
a=[]
t=[0]
x=[0]
y=[0]

a = [input().split() for l in range(n)]
for i in range(n):
    t.append(a[i][0])
    x.append(a[i][1])
    y.append(a[i][2])

for i in range(1,n+1):
    time = int(t[i])-int(t[i-1])
    next2 = int(x[i])+int(y[i])
    if time >= next2-now and (time-(next2-now))%2 == 0:
       now = int(x[i])+int(y[i])
    else:
        print('No')
        sys.exit()
    
print('Yes')
