




import math
from decimal import Decimal, getcontext


def 							__SCREAMING_SNAKE_CASE  (      snake_case_ = 400_0000						):

						'''simple docstring'''


						try:
												_UpperCAmelCase													=					int(snake_case_						)
						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."						)
						_UpperCAmelCase													=					100
						_UpperCAmelCase													=					(Decimal(5						) ** Decimal(0.5						) + 1) / Decimal(2						)

						_UpperCAmelCase													=					(math.floor(math.log(n * (phi + 2)     ,   snake_case_						) - 1						) // 3) * 3 + 2
						_UpperCAmelCase													=					Decimal(round(phi ** Decimal(index + 1						)						)						) / (phi + 2)
						_UpperCAmelCase													=					num // 2
						return int(snake_case_						)


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










from __future__ import annotations


def 							__SCREAMING_SNAKE_CASE  (      snake_case_						):

						'''simple docstring'''


						if len(snake_case_						) == 0:
												raise ValueError("find_max() arg is an empty sequence"						)
						_UpperCAmelCase													=					nums[0]
						for x in nums:
												if x > max_num:
																		_UpperCAmelCase													=					x
						return max_num


if __name__ == "__main__":
				import doctest

				doctest.testmod(verbose=True)




