


"""simple docstring"""



from collections.abc import Iterable
from typing import Generic, TypeVar

__snake_case             =   TypeVar("""_T""")







class _lowerCAmelCase    (				Generic[_T]     ):







			def __init__(     self						,     UpperCamelCase__ = None						)     ->		None:

							'''simple docstring'''




							snake_case   :				list[_T]				 =   list(iterable or []						)
							snake_case   :				list[_T]				 =   []







			def __len__(     self						)     ->		int:

							'''simple docstring'''




							return len(self._stacka						) + len(self._stacka						)







			def __repr__(     self						)     ->		str:

							'''simple docstring'''




							return F'Queue({tuple(self._stacka[::-1] + self._stacka						)})'







			def 			lowerCamelCase		(     self						,     UpperCamelCase__						)     ->		None:

							'''simple docstring'''




							self._stacka.append(UpperCamelCase__						)







			def 			lowerCamelCase		(     self						)     ->		_T:

							'''simple docstring'''




							snake_case   :				Tuple				 =   self._stacka.pop
							snake_case   :				Dict				 =   self._stacka.append

							if not self._stacka:
											while self._stacka:
															stacka_append(stacka_pop()						)

							if not self._stacka:
											raise IndexError("Queue is empty"						)
							return self._stacka.pop()


if __name__ == "__main__":
		from doctest import testmod

		testmod()









"""simple docstring"""



def   __lowerCAmelCase						(						lowercase  :  int			)     ->						int:


    """simple docstring"""





    if not isinstance(lowercase						,							lowercase			):
        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()





