import fileinput

def main():
	pos = [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 = x + y
		src = sum(pos)
		if (abs(dest - src) > t):
			return print("No")
		else:
			arrivable = True if not abs(dest - src - t) % 2 else False
			if (arrivable):
				pos[0], pos[1] = x, y
				next
			else:
				return print("No")
              
	print("Yes")
                
main()
      

