
from itertools import product

def 					SCREAMING_SNAKE_CASE  (   __UpperCamelCase			:    int = 15							)			->							int:

				"""simple docstring"""







				A__	:						float								=				0.0
				A__	:						float
				A__	:						int
				A__	:						int
				A__	:						int
				A__	:						int
				A__	:						tuple[int, ...]

				for series in product(range(2							)				,    repeat=__UpperCamelCase							):
								A__	:						Tuple								=				series.count(1							)
								A__	:						int								=				num_turns - num_blue
								if num_red >= num_blue:
												continue
								A__	:						List[str]								=				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() = }""")

def 					SCREAMING_SNAKE_CASE  (   __UpperCamelCase			:    list[int]							)			->							int:

				"""simple docstring"""







				if not isinstance(__UpperCamelCase				,    __UpperCamelCase							) or not all(
				    isinstance(__UpperCamelCase				,    __UpperCamelCase							) and item >= 0 for item in citations							):
								raise ValueError('''The citations should be a list of non negative integers.'''							)

				citations.sort()
				A__	:						str								=				len(__UpperCamelCase							)

				for i in range(__UpperCamelCase							):
								if citations[len_citations - 1 - i] <= i:
												return i

				return len_citations


if __name__ == "__main__":
					import doctest

					doctest.testmod()