local n = io.read("*n") * 2 local a = {} for i = 1, n do a[i] = io.read("*n") end table.sort(a) local right = n local minus = 0 for i = 1, n do local ai = a[i] while i < right and 0 <= ai + a[right] do right = right - 1 end if right <= i then break end minus = minus + 1 right = right - 1 end local plus = 0 local left = 1 for i = n, 1, -1 do local ai = a[i] while left < i and a[left] + ai <= 0 do left = left + 1 end if i <= left then break end plus = plus + 1 left = left + 1 end local am = {} for i = 1, n do local ai = a[i] if not am[ai] then am[ai] = 1 else am[ai] = am[ai] + 1 end end local center = 0 for k, v in pairs(am) do if k == 0 then center = center + math.floor(v / 2) elseif 0 < k then if am[-k] then center = center + math.min(v, am[-k]) end end end print(minus .. " " .. plus .. " " .. center)