import Numeric

solve :: [Float] -> [String]
solve (x1:y1:x2:y2:x3:y3:xs)
  | null xs = []
  | otherwise = ((showFFloat (Just 3) p " ")++(showFFloat (Just 3) q " ")++r) : solve xs
  where p = ((/1000) . fromIntegral . round . (*1000)) ((y1-y3)*(y1^2-y2^2+x1^2-x2^2)-(y1-y2)*(y1^2-y3^2+x1^2-x3^2))/(2*(y1-y3)*(x1-x2)-2*(y1-y2)*(x1-x3))
        q = ((/1000) . fromIntegral . round . (*1000)) ((x1-x3)*(x1^2-x2^2+y1^2-y2^2)-(x1-x2)*(x1^2-x3^2+y1^2-y3^2))/(2*(x1-x3)*(y1-y2)-2*(x1-x2)*(y1-y3))
        r = showFFloat (Just 3) (((/1000) . fromIntegral . round . (*1000) . sqrt) ((p-x1)^2+(q-y1)^2)) ""

main = getContents >>= mapM_ putStrLn . solve . (++[1,1,1,1,1,1]) . map read . tail . words