static void solve ( ) {
  double p = in . nextDouble ( ) ;
  double l = 0.0 , r = Integer . MAX_VALUE / 2 ;
  for ( int i = 0 ;
  i < 100 ;
  i ++ ) {
    double s = ( l * 2 + r ) / 3 ;
    double t = ( l + r * 2 ) / 3 ;
    if ( f ( s , p ) < f ( t , p ) ) {
      r = t ;
    }
    else {
      l = s ;
    }
  }
  out . printf ( "%.10f\n" , f ( ( l + r ) * 0.5 , p ) ) ;
}

static void solve ( ) { double p = in . nextDouble ( ) ; double l = 0.0 , r = Integer . MAX_VALUE / 2 ; for ( int i = 0 ; i < 100 ; i ++ ) { double s = ( l * 2 + r ) / 3 ; double t = ( l + r * 2 ) / 3 ; if ( f ( s , p ) < f ( t , p ) ) { r = t ; } else { l = s ; } } out . printf ( " % .10f \n " , f ( ( l + r ) * 0.5 , p ) ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters) body: (block (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (decimal_floating_point_literal)) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (field_access object: (identifier) field: (identifier)) right: (decimal_integer_literal)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (decimal_integer_literal)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (identifier))) right: (decimal_integer_literal)))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) right: (decimal_integer_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier))) right: (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier))))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (block (expression_statement (assignment_expression left: (identifier) right: (identifier))))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal) (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (decimal_floating_point_literal)) (identifier))))))))