





'''simple docstring'''

def  _a     (				lowerCAmelCase_						):





      """simple docstring"""



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




def  _a     (				):





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









def  A					(				UpperCAmelCase					):
					if not isinstance(UpperCAmelCase	,	UpperCAmelCase					):
										_snake_case							:       Optional[Any]												= F"""Input value of [number={number}] must be an integer"""
										raise TypeError(UpperCAmelCase					)
					if number < 1:
										raise ValueError("Input must be a positive integer"					)
					return number * (2 * number - 1)


if __name__ == "__main__":
							import doctest

							doctest.testmod()