



'''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"""


def 					a			(  UpperCamelCase_				:					float		)	->		int:
 return int(UpperCamelCase_		) if x - int(UpperCamelCase_		) <= 0 else int(UpperCamelCase_		) + 1


if __name__ == "__main__":
   import doctest

   doctest.testmod()





