local line = io.read("*n")

local tab = {{0, 0, 0}}
local len = 1

for i=1,line do
	local a = io.read("*n")
	local b = io.read("*n")
	local c = io.read("*n")
	table.insert(tab, {a, b, c})
	len = len + 1
end

local stata = "Yes"
for i=2,len do
	local cur = tab[i]
	local per = tab[i - 1]

	local v = math.abs(cur[2] - per[2]) + math.abs(cur[3] - per[3])

	if v > cur[1] - per[1] then
		stata = "No"
		break
	elseif math.abs((v - (cur[1] - per[1]))) % 2 == 1 then
		stata = "No"
		break
	end
end

print(stata)