



'''simple docstring'''






import math
from decimal import Decimal, getcontext




def        snake_case_   (	lowerCAmelCase_ = 4000000						)->						int:





       '''simple docstring'''


       try:
              _UpperCAmelCase    :		Optional[Any]     	=					int(lowerCAmelCase_						)
       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    :		Tuple     	=					100
       _UpperCAmelCase    :		Tuple     	=					(Decimal(5						) ** Decimal(0.5						) + 1) / Decimal(2						)

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


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









'''simple docstring'''

import unittest
import warnings

from datasets.utils import experimental




@experimental
def    snake_case__     (  )			->       Union[str, Any]:





			'''simple docstring'''






			return "success"





class __magic_name__(						unittest.TestCase      ):






						def       __lowerCAmelCase(   self						:						List[Any]       ):



									'''simple docstring'''






									with warnings.catch_warnings(record=__UpperCamelCase       ) as w:
												warnings.simplefilter("""always"""       )
												self.assertEqual(dummy_function()					,   """success"""       )
									self.assertEqual(len(__UpperCamelCase       )					,   1       )