import Text.Printf
import Control.Applicative

ccircle :: [Double] -> [Double]
ccircle (x1 : y1 : x2 : y2 : x3 : y3: _) = [px, py, r]
    where
        f :: Floating a => a -> a -> a -> a -> a
        f a1 a2 b1 b2 = (/ 2.0) $ (a1 + a2) * (a1 - a2) + (b1 + b2) * (b1 - b2)
        f12 = f x1 x2 y1 y2
        f23 = f x2 x3 y2 y3
        det = (x1 - x2) * (y2 - y3) - (y1 - y2) * (x2 - x3)
        px = (/ det) $ f12 * (y2 - y3) + f23 * (y2 - y1)
        py = (/ det) $ f12 * (x3 - x2) + f23 * (x1 - x2)
        r = sqrt $ (x1 - px) * (x1 - px) + (y1 - py) * (y1 - py)

main :: IO ()
main = do
    _ <- getLine
    ans <- map ccircle . map (map read) . map words . lines <$> getContents
    mapM_ (\[px, py, r] -> printf "%.3g %.3g %.3g\n" px py r) ans