local n = io.read('*n')
io.read('*l')
local ret = true
for i = 1, n do
	local t = io.read('*n')
	local x = io.read('*n')
	local y = io.read('*n')
	if (t - (x + y)) < 0 then
		ret = false
	end
	if (t - (x + y)) % 2 > 0 then
		ret = false
	end
end
print(ret and 'Yes' or 'No')