local a = io.read("*number")

local function getABC()
	local tb = {false, false}
	for i=1, a do
		local s = io.read("*number")
		local x = io.read("*number")
		local y = io.read("*number")
		for j=0, s do
			local r = x + y + 2*j
			if s == r then
				tb[i] = true
				break
			end
		end
	end
	return tb
end

local r = getABC()
if r[1] and r[2] then
	print("YES")
else
	print("NO")
end
