public static void main ( String [ ] args ) throws Exception {
  BufferedReader in = new BufferedReader ( new FileReader ( "C-large.in" ) ) ;
  PrintWriter out = new PrintWriter ( "c.out" ) ;
  int T = Integer . parseInt ( in . readLine ( ) ) ;
  for ( int i = 1 ;
  i <= T ;
  i ++ ) {
    int n = Integer . parseInt ( in . readLine ( ) ) ;
    double [ ] x = new double [ n ] ;
    double [ ] y = new double [ n ] ;
    double [ ] z = new double [ n ] ;
    double [ ] p = new double [ n ] ;
    for ( int j = 0 ;
    j < n ;
    j ++ ) {
      StringTokenizer tz = new StringTokenizer ( in . readLine ( ) ) ;
      x [ j ] = Integer . parseInt ( tz . nextToken ( ) ) ;
      y [ j ] = Integer . parseInt ( tz . nextToken ( ) ) ;
      z [ j ] = Integer . parseInt ( tz . nextToken ( ) ) ;
      p [ j ] = Integer . parseInt ( tz . nextToken ( ) ) ;
    }
    double l = 0 ;
    double r = 1e8 ;
    while ( r > l + 1e-7 ) {
      double pp = ( l + r ) / 2 ;
      boolean can = true ;
      outer : for ( int j = 0 ;
      j < n ;
      j ++ ) {
        for ( int k = 0 ;
        k < n ;
        k ++ ) {
          double d = Math . abs ( x [ k ] - x [ j ] ) + Math . abs ( y [ k ] - y [ j ] ) + Math . abs ( z [ k ] - z [ j ] ) ;
          if ( d > pp * ( p [ k ] + p [ j ] ) ) {
            can = false ;
            break outer ;
          }
        }
      }
      if ( can ) {
        r = pp ;
      }
      else {
        l = pp ;
      }
    }
    double rr = ( l + r ) / 2 ;
    out . printf ( Locale . US , "Case #%d: %.6f\n" , i , rr ) ;
  }
  in . close ( ) ;
  out . close ( ) ;
}

public static void main ( String [ ] args ) throws Exception { BufferedReader in = new BufferedReader ( new FileReader ( " C - large . in " ) ) ; PrintWriter out = new PrintWriter ( " c . out " ) ; int T = Integer . parseInt ( in . readLine ( ) ) ; for ( int i = 1 ; i <= T ; i ++ ) { int n = Integer . parseInt ( in . readLine ( ) ) ; double [ ] x = new double [ n ] ; double [ ] y = new double [ n ] ; double [ ] z = new double [ n ] ; double [ ] p = new double [ n ] ; for ( int j = 0 ; j < n ; j ++ ) { StringTokenizer tz = new StringTokenizer ( in . readLine ( ) ) ; x [ j ] = Integer . parseInt ( tz . nextToken ( ) ) ; y [ j ] = Integer . parseInt ( tz . nextToken ( ) ) ; z [ j ] = Integer . parseInt ( tz . nextToken ( ) ) ; p [ j ] = Integer . parseInt ( tz . nextToken ( ) ) ; } double l = 0 ; double r = 1e8 ; while ( r > l + 1e-7 ) { double pp = ( l + r ) / 2 ; boolean can = true ; outer : for ( int j = 0 ; j < n ; j ++ ) { for ( int k = 0 ; k < n ; k ++ ) { double d = Math . abs ( x [ k ] - x [ j ] ) + Math . abs ( y [ k ] - y [ j ] ) + Math . abs ( z [ k ] - z [ j ] ) ; if ( d > pp * ( p [ k ] + p [ j ] ) ) { can = false ; break outer ; } } } if ( can ) { r = pp ; } else { l = pp ; } } double rr = ( l + r ) / 2 ; out . printf ( Locale . US , " Case ▁ # % d : ▁ % .6f \n " , i , rr ) ; } in . close ( ) ; out . close ( ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) (throws (type_identifier)) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (object_creation_expression type: (type_identifier) arguments: (argument_list (string_literal))))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (string_literal))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (local_variable_declaration type: (array_type element: (floating_point_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (floating_point_type) dimensions: (dimensions_expr (identifier))))) (local_variable_declaration type: (array_type element: (floating_point_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (floating_point_type) dimensions: (dimensions_expr (identifier))))) (local_variable_declaration type: (array_type element: (floating_point_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (floating_point_type) dimensions: (dimensions_expr (identifier))))) (local_variable_declaration type: (array_type element: (floating_point_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (floating_point_type) dimensions: (dimensions_expr (identifier))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (decimal_floating_point_literal))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_floating_point_literal)))) body: (block (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (decimal_integer_literal)))) (local_variable_declaration type: (boolean_type) declarator: (variable_declarator name: (identifier) value: (true))) (labeled_statement (identifier) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (array_access array: (identifier) index: (identifier))))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (array_access array: (identifier) index: (identifier)))))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (array_access array: (identifier) index: (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (array_access array: (identifier) index: (identifier))))))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (false))) (break_statement (identifier))))))))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (block (expression_statement (assignment_expression left: (identifier) right: (identifier))))))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)) (string_literal) (identifier) (identifier)))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))