gets
while vals = gets
  x1, y1, x2, y2, x3, y3 = vals.split.map(&:to_f)
  a = ( x2 - x1 ) ** 2.0 + ( y2 - y1 ) ** 2.0
  b = ( x3 - x2 ) ** 2.0 + ( y3 - y2 ) ** 2.0
  c = ( x1 - x3 ) ** 2.0 + ( y1 - y3 ) ** 2.0
  s = a * ( b + c - a ) + b * ( c + a - b ) + c * ( a + b - c )
  rx = ( a * ( b + c - a ) * x1 + b * ( c + a - b ) * x2 + c * ( a + b - c ) * x3 ) / s
  ry = ( a * ( b + c - a ) * y2 + b * ( c + a - b ) * y3 + c * ( a + b - c ) * y1 ) / s
  radius = ( ( rx - x1 ) ** 2.0 + ( ry - y1 ) ** 2.0 ) ** 0.5
puts "#{rx} #{ry} #{radius}"
end