

"""simple docstring"""

from collections import namedtuple

_UpperCamelCase       =						namedtuple("""from_to""", """from_ to""")

_UpperCamelCase       =						{
    """atm""": from_to(1, 1),
    """pascal""": from_to(0.0_000_098, 1_0_1_3_2_5),
    """bar""": from_to(0.986_923, 1.01_325),
    """kilopascal""": from_to(0.00_986_923, 101.325),
    """megapascal""": from_to(9.86_923, 0.101_325),
    """psi""": from_to(0.068_046, 14.6_959),
    """inHg""": from_to(0.0_334_211, 29.9_213),
    """torr""": from_to(0.00_131_579, 7_6_0),
}



def 			SCREAMING_SNAKE_CASE       (   lowercase__				,				lowercase__				,				lowercase__      ) ->	float:
 if from_type not in PRESSURE_CONVERSION:
  raise ValueError(
      F"""Invalid 'from_type' value: {from_type!r}  Supported values are:\n"""
      + ", ".join(lowercase__      )      )
 if to_type not in PRESSURE_CONVERSION:
  raise ValueError(
      F"""Invalid 'to_type' value: {to_type!r}.  Supported values are:\n"""
      + ", ".join(lowercase__      )      )
 return (
     value * PRESSURE_CONVERSION[from_type].from_ * PRESSURE_CONVERSION[to_type].to
 )


if __name__ == "__main__":
    import doctest

    doctest.testmod()









"""simple docstring"""

from itertools import product



def 			SCREAMING_SNAKE_CASE       (   lowercase__ = 1_5      ) ->	int:
 lowerCAmelCase__      :							float    =							0.0
 lowerCAmelCase__      :							float
 lowerCAmelCase__      :							int
 lowerCAmelCase__      :							int
 lowerCAmelCase__      :							int
 lowerCAmelCase__      :							int
 lowerCAmelCase__      :							tuple[int, ...]

 for series in product(range(2      )				,				repeat=lowercase__      ):
  lowerCAmelCase__      :							Optional[int]    =							series.count(1      )
  lowerCAmelCase__      :							Dict    =							num_turns - num_blue
  if num_red >= num_blue:
   continue
  lowerCAmelCase__      :							Dict    =							1.0
  for ind, col in enumerate(lowercase__				,				2      ):
   if col == 0:
    prob *= (ind - 1) / ind
   else:
    prob *= 1 / ind

  total_prob += prob

 return int(1 / total_prob      )


if __name__ == "__main__":
    print(f"{solution() = }")






