


"""simple docstring"""


from __future__ import annotations

from enum import Enum


class  snake_case		(							lowercase_						):


   '''simple docstring'''

   A_						:     List[Any]									=			24
   A_						:     Optional[Any]									=			21
   A_						:     Union[str, Any]									=			18
   A_						:     Optional[int]									=			15
   A_						:     List[str]									=			12
   A_						:     Optional[int]									=			9
   A_						:     Union[str, Any]									=			6
   A_						:     Dict									=			3
   A_						:     Optional[int]									=			2
   A_						:     str									=			1
   A_						:     Dict									=			-1
   A_						:     Optional[Any]									=			-2
   A_						:     Dict									=			-3
   A_						:     Optional[int]									=			-6
   A_						:     List[str]									=			-9
   A_						:     List[str]									=			-12
   A_						:     Any									=			-15
   A_						:     Union[str, Any]									=			-18
   A_						:     Optional[int]									=			-21
   A_						:     Optional[int]									=			-24





class  snake_case		(							lowercase_						):


   '''simple docstring'''

   A_						:     List[str]									=			8
   A_						:     Any									=			7
   A_						:     str									=			6
   A_						:     Optional[int]									=			5
   A_						:     List[str]									=			4
   A_						:     str									=			3
   A_						:     List[Any]									=			2
   A_						:     List[str]									=			1





def  lowerCAmelCase    (   __UpperCamelCase		,	__UpperCamelCase		,	__UpperCamelCase		,	):




  """simple docstring"""







  if isinstance(__lowercase		,	__lowercase			):
    __A						      =			SIUnit[known_prefix.lower()]
  if isinstance(__lowercase		,	__lowercase			):
    __A						      =			SIUnit[unknown_prefix.lower()]
  __A						      =			known_amount * (
      1_0 ** (known_prefix.value - unknown_prefix.value)
  )
  return unknown_amount



def  lowerCAmelCase    (   __UpperCamelCase		,	__UpperCamelCase		,	__UpperCamelCase		,	):




  """simple docstring"""







  if isinstance(__lowercase		,	__lowercase			):
    __A						      =			BinaryUnit[known_prefix.lower()]
  if isinstance(__lowercase		,	__lowercase			):
    __A						      =			BinaryUnit[unknown_prefix.lower()]
  __A						      =			known_amount * (
      2 ** ((known_prefix.value - unknown_prefix.value) * 1_0)
  )
  return unknown_amount


if __name__ == "__main__":
       import doctest

       doctest.testmod()












"""simple docstring"""


from itertools import product



def  lowerCAmelCase    (   __UpperCamelCase = 1_5			):




  """simple docstring"""







  __A						      =			0.0
  __A						      =			42
  __A						      =			42
  __A						      =			42
  __A						      =			42
  __A						      =			42
  __A						      =			42

  for series in product(range(2			)		,	repeat=__UpperCamelCase			):
    __A						      =			series.count(1			)
    __A						      =			num_turns - num_blue
    if num_red >= num_blue:
      continue
    __A						      =			1.0
    for ind, col in enumerate(__UpperCamelCase		,	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() = }''')




