



"""simple docstring"""







import enum
import shutil
import sys


UpperCamelCase  ,					UpperCamelCase     =							shutil.get_terminal_size()

UpperCamelCase     =							{"""UP""": """A""", """DOWN""": """B""", """RIGHT""": """C""", """LEFT""": """D"""}






class       UpperCamelCase__			(   enum.Enum      ):

			"""simple docstring"""


			A__	:					List[Any]							  =     0
			A__	:					Optional[int]							  =     1



def       _lowerCamelCase				(							UpperCAmelCase_ :       str,	UpperCAmelCase_ :       Optional[Any]=""     )	-> List[Any]:






	"""simple docstring"""





	sys.stdout.write(str(UpperCAmelCase_     ) + end     )
	sys.stdout.flush()

def       _lowerCamelCase				(							UpperCAmelCase_ :       int,	UpperCAmelCase_ :       List[Any],	UpperCAmelCase_ :       Tuple=""     )	-> str:






	"""simple docstring"""





	forceWrite(F"""\u001b[{color}m{content}\u001b[0m""",	UpperCAmelCase_     )

def       _lowerCamelCase				(							)	-> Optional[Any]:






	"""simple docstring"""





	forceWrite("\r"     )

def       _lowerCamelCase				(							UpperCAmelCase_ :       int,	UpperCAmelCase_ :       str     )	-> Tuple:






	"""simple docstring"""





	forceWrite(F"""\033[{num_lines}{CURSOR_TO_CHAR[direction.upper()]}"""     )

def       _lowerCamelCase				(							)	-> Tuple:






	"""simple docstring"""





	forceWrite(" " * TERMINAL_WIDTH     )
	reset_cursor()




def       _lowerCamelCase				(							)	-> Any:






	"""simple docstring"""





	reset_cursor()
	forceWrite("-" * TERMINAL_WIDTH     )









"""simple docstring"""







def       _lowerCamelCase				(							UpperCAmelCase_ :       int     )	-> int:






	"""simple docstring"""





	if not isinstance(UpperCAmelCase_,	UpperCAmelCase_     ):
		raise ValueError("Input must be an integer"     )
	if input_num <= 0:
		raise ValueError("Input must be positive"     )
	return sum(
	    divisor for divisor in range(1,	input_num // 2 + 1     ) if input_num % divisor == 0     )


if __name__ == "__main__":
			import doctest

			doctest.testmod()




