public static void answer ( Scanner in ) {
  double sx , sy , sz , svx , svy , svz ;
  sx = 0 ;
  sy = 0 ;
  sz = 0 ;
  svx = 0 ;
  svy = 0 ;
  svz = 0 ;
  int n = in . nextInt ( ) ;
  for ( int i = 0 ;
  i < n ;
  i ++ ) {
    sx += in . nextDouble ( ) ;
    sy += in . nextDouble ( ) ;
    sz += in . nextDouble ( ) ;
    svx += in . nextDouble ( ) ;
    svy += in . nextDouble ( ) ;
    svz += in . nextDouble ( ) ;
  }
  double a , b , c ;
  a = svx * svx + svy * svy + svz * svz ;
  b = 2 * ( sx * svx + sy * svy + sz * svz ) ;
  c = sx * sx + sy * sy + sz * sz ;
  double outT ;
  if ( a != 0 ) {
    outT = - b / ( 2 * a ) ;
    if ( outT < 0 ) {
      outT = 0 ;
    }
  }
  else {
    outT = 0 ;
  }
  double outD = a * outT * outT + b * outT + c ;
  if ( outD < 0 ) {
    outD = 0 ;
  }
  outD = Math . sqrt ( outD ) / n ;
  System . out . println ( outD + " " + outT ) ;
}

public static void answer ( Scanner in ) { double sx , sy , sz , svx , svy , svz ; sx = 0 ; sy = 0 ; sz = 0 ; svx = 0 ; svy = 0 ; svz = 0 ; int n = in . nextInt ( ) ; for ( int i = 0 ; i < n ; i ++ ) { sx += in . nextDouble ( ) ; sy += in . nextDouble ( ) ; sz += in . nextDouble ( ) ; svx += in . nextDouble ( ) ; svy += in . nextDouble ( ) ; svz += in . nextDouble ( ) ; } double a , b , c ; a = svx * svx + svy * svy + svz * svz ; b = 2 * ( sx * svx + sy * svy + sz * svz ) ; c = sx * sx + sy * sy + sz * sz ; double outT ; if ( a != 0 ) { outT = - b / ( 2 * a ) ; if ( outT < 0 ) { outT = 0 ; } } else { outT = 0 ; } double outD = a * outT * outT + b * outT + c ; if ( outD < 0 ) { outD = 0 ; } outD = Math . sqrt ( outD ) / n ; System . out . println ( outD + " ▁ " + outT ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier))) body: (block (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (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 (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier))) right: (binary_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (decimal_integer_literal) right: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier))) right: (binary_expression left: (identifier) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier))) right: (binary_expression left: (identifier) right: (identifier))))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (unary_expression operand: (identifier)) right: (parenthesized_expression (binary_expression left: (decimal_integer_literal) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal)))))) alternative: (block (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier))) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (identifier)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (string_literal)) right: (identifier)))))))