'''alpha10=["a","b","c","d","e","f","g","h","i","j"]
N=int(input())
answers=[[] for i in range(10)]
answers[0].append("0")
print(answers)
for i in range(9):
    for befans in answers[i]:
        answers[i+1].append("0"+befans)'''
'''import sys
n=int(input())
points=[["0","0","0"]]
for i in range(n):
    points.append(input().rstrip().split(" "))
print(points)
for i in range(n):
    delx=int(points[i+1][1])-int(points[i][1])
    dely=int(points[i+1][2])-int(points[i][2])
    delt=int(points[i+1][0])-int(points[i][0])
    if delx+dely>delt or (delt-delx-dely)%2==1:
	    print("No")
    	sys.exit()
print("Yes")'''
import sys
n=int(input())
points=[["0","0","0"]]
for i in range(n):
    points.append(input().rstrip().split(" "))
#print(points)
for i in range(n):
    delx=int(points[i+1][1])-int(points[i][1])
    dely=int(points[i+1][2])-int(points[i][2])
    delt=int(points[i+1][0])-int(points[i][0])
    if abs(delx)+abs(dely)>delt or (delt-delx-dely)%2==1:
        print("No")
        sys.exit()
print("Yes")