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

local function getABC()
	local result
	for i=1, a do
		local s = io.read("*number")
		local x = io.read("*number")
		local y = io.read("*number")
		for j=1, s do
			r = x + y + 2*j
			if s == r then
				result = "YES"
				return result
			end
		end
	end

	return "NO"
end

local r = getABC()
print(r)
