






import math
from decimal import Decimal, getcontext




def       _a   (							lowerCamelCase__ = 4_00_00_00				)  ->      Tuple:

 try:
  lowerCamelCase_							:    Dict							=     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.'				)
 lowerCamelCase_							:    Any							=     1_00
 lowerCamelCase_							:    Dict							=     (Decimal(5				) ** Decimal(0.5				) + 1) / Decimal(2				)

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


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







import math
from decimal import Decimal, getcontext


def      SCREAMING_SNAKE_CASE      (   lowerCAmelCase = 4_000_000       ):

       try:
              _UpperCamelCase														=    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														=    100
       _UpperCamelCase														=    (Decimal(5       ) ** Decimal(0.5       ) + 1) / Decimal(2       )

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


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






