"""simple docstring"""
from itertools import product







def 		__a  (      _SCREAMING_SNAKE_CASE = 15  )      ->int:
  a__:	float     				=      0.0
  a__:	float
  a__:	int
  a__:	int
  a__:	int
  a__:	int
  a__:	tuple[int, ...]

  for series in product(range(2  )						,	repeat=_SCREAMING_SNAKE_CASE  ):
    a__:	Optional[Any]     				=      series.count(1  )
    a__:	Optional[int]     				=      num_turns - num_blue
    if num_red >= num_blue:
      continue
    a__:	Tuple     				=      1.0
    for ind, col in enumerate(_SCREAMING_SNAKE_CASE						,	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() = }")



"""simple docstring"""

def    lowerCAmelCase			(__UpperCamelCase							:    list							,					__UpperCamelCase							:    int			):
							"""simple docstring"""


							for index, item in enumerate(__UpperCamelCase			):
														if item == target:
																					return index
							return -1


def    lowerCAmelCase			(__UpperCamelCase							:    list							,					__UpperCamelCase							:    int							,					__UpperCamelCase							:    int							,					__UpperCamelCase							:    int			):
							"""simple docstring"""


							if not (0 <= high < len(__UpperCamelCase			) and 0 <= low < len(__UpperCamelCase			)):
														raise Exception('''Invalid upper or lower bound!'''			)
							if high < low:
														return -1
							if sequence[low] == target:
														return low
							if sequence[high] == target:
														return high
							return rec_linear_search(__UpperCamelCase							,					low + 1							,					high - 1							,					__UpperCamelCase			)


if __name__ == "__main__":
				__lowercase    =				input('''Enter numbers separated by comma:\n''').strip()
				__lowercase    =				[int(item.strip()) for item in user_input.split(''',''')]

				__lowercase    =				int(input('''Enter a single number to be found in the list:\n''').strip())
				__lowercase    =				linear_search(sequence, target)
				if result != -1:
								print(f'''linear_search({sequence}, {target}) = {result}''')
				else:
								print(f'''{target} was not found in {sequence}''')



