


'''simple docstring'''






def 						_A					(lowerCAmelCase__	:float		) ->	int:




     '''simple docstring'''



     if num < 0:
          return -1
     return 1 if num else 0






def 						_A					() ->	None:




     '''simple docstring'''



     assert signum(5		) == 1
     assert signum(-5		) == -1
     assert signum(0		) == 0


if __name__ == "__main__":
 print(signum(1_2))
 print(signum(-1_2))
 print(signum(0))





'''simple docstring'''






import math
from decimal import Decimal, getcontext






def 						_A					(lowerCAmelCase__	:int = 4_00_00_00		) ->	int:




     '''simple docstring'''



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

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


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

