




import math
from decimal import Decimal, getcontext



def 					UpperCamelCase__       (						lowercase__					:       int = 400_0000				):







		try:
				snake_case						:  str        =			int(lowercase__				)
		except (TypeError, ValueError):
				raise TypeError("Parameter n must be int or castable to int."				)
		if n <= 0:
				raise ValueError("Parameter n must be greater than or equal to one."				)
		snake_case						:  Union[str, Any]        =			100
		snake_case						:  Union[str, Any]        =			(Decimal(5				) ** Decimal(0.5				) + 1) / Decimal(2				)

		snake_case						:  List[Any]        =			(math.floor(math.log(n * (phi + 2)    ,       lowercase__				) - 1				) // 3) * 3 + 2
		snake_case						:  str        =			Decimal(round(phi ** Decimal(index + 1				)				)				) / (phi + 2)
		snake_case						:  Optional[Any]        =			num // 2
		return int(lowercase__				)


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







"""simple docstring"""

def 					UpperCamelCase__       (						lowercase__					:       int				):
		if not isinstance(lowercase__    ,       lowercase__				):
				raise ValueError("double_factorial() only accepts integral values"				)
		if n < 0:
				raise ValueError("double_factorial() not defined for negative values"				)
		return 1 if n <= 1 else n * double_factorial(n - 2				)


if __name__ == "__main__":
							import doctest

							doctest.testmod()

