
"""simple docstring"""







import math
from decimal import Decimal, getcontext




def 			A_			(					lowercase = 400_0000      )     ->							int:


     """simple docstring"""







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

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


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



"""simple docstring"""







import warnings

from .generation import FlaxGenerationMixin



class 		UpperCAmelCase_	(lowerCamelCase_						):
 """simple docstring"""




 warnings.warn(
     """Importing `FlaxGenerationMixin` from `src/transformers/generation_flax_utils.py` is deprecated and will """
     """be removed in Transformers v5. Import as `from transformers import FlaxGenerationMixin` instead."""  , lowerCamelCase_  , )

