import fileinput

def main():
	pos = [0, 0, 0]
	lines = [line.rstrip() for line in fileinput.input()]
	for line in lines[1:]:
		t, x, y = map(lambda x: int(x), line.split())
		dest = abs(x - pos[1]) + abs(y - pos[2])
		t_d = t - pos[0]
        
        
		if (dest <= t_d and (dest % 2 == t % 2)):
			pos[0], pos[1], pos[2] = t, x, y
			next
		else:
			return print("No")
	print("Yes")
                
main()
      

