'''simple docstring'''




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

_a   :	int 							=   TypeVar("_T")






class 		__A       (Generic[_T]   ):






							def __init__(      self				,     UpperCamelCase_ = None      ):
														__UpperCAmelCase  :				list[_T]       				=		list(iterable or []      )
														__UpperCAmelCase  :				list[_T]       				=		[]






							def __len__(      self      ):
														return len(self._stacka      ) + len(self._stacka      )






							def __repr__(      self      ):
														return f"""Queue({tuple(self._stacka[::-1] + self._stacka      )})"""






							def 			_snake_case						(      self				,     UpperCamelCase_      ):
														self._stacka.append(UpperCamelCase_      )







							def 			_snake_case						(      self      ):
														__UpperCAmelCase  :				str       				=		self._stacka.pop
														__UpperCAmelCase  :				Union[str, Any]       				=		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 _lowercase	(      lowerCamelCase__ = 100						)					->       int:





       """simple docstring"""


       __UpperCAmelCase  :				Optional[Any]       				=		(n * (n + 1) // 2) ** 2
       __UpperCAmelCase  :				Any       				=		n * (n + 1) * (2 * n + 1) // 6
       return sum_cubes - sum_squares


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






