





'''simple docstring'''


import math
from decimal import Decimal, getcontext




def       A							(      _UpperCAmelCase   :				int = 4_0_0_0_0_0_0					)  ->				int:


  '''simple docstring'''




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

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


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












'''simple docstring'''


from typing import Callable




def       A							(      _UpperCAmelCase   :				Callable					)  ->				Dict:


  '''simple docstring'''




  def wrapper(_UpperCAmelCase   :				Optional[Any]					):
    __lowerCAmelCase		:    List[Any]			     =  function_with_docstring.__doc__
    return target_function

  return wrapper





