public static void main ( String [ ] args ) {
  SC sc = new SC ( System . in ) ;
  double P = sc . nextDouble ( ) ;
  double bibin = 1 - P * Math . log ( 2 ) / 1.5 ;
  if ( bibin > 0 ) {
    pl ( P ) ;
  }
  else {
    double t = 1.5 / Math . log ( 2 ) * Math . log ( P * Math . log ( 2 ) / 1.5 ) ;
    double ans = t + P / ( Math . pow ( 2 , t / 1.5 ) ) ;
    pl ( ans ) ;
  }
}

public static void main ( String [ ] args ) { SC sc = new SC ( System . in ) ; double P = sc . nextDouble ( ) ; double bibin = 1 - P * Math . log ( 2 ) / 1.5 ; if ( bibin > 0 ) { pl ( P ) ; } else { double t = 1.5 / Math . log ( 2 ) * Math . log ( P * Math . log ( 2 ) / 1.5 ) ; double ans = t + P / ( Math . pow ( 2 , t / 1.5 ) ) ; pl ( ans ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (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: (binary_expression left: (decimal_integer_literal) right: (binary_expression left: (binary_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) right: (decimal_floating_point_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier))))) alternative: (block (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (binary_expression left: (decimal_floating_point_literal) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) right: (decimal_floating_point_literal))))))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal) (binary_expression left: (identifier) right: (decimal_floating_point_literal))))))))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier))))))))