



class    _SCREAMING_SNAKE_CASE						:





     def __init__(							self			:				Any					)->Optional[int]:
      __SCREAMING_SNAKE_CASE							:     str							=						[]
      __SCREAMING_SNAKE_CASE							:     Tuple							=						0
      __SCREAMING_SNAKE_CASE							:     Tuple							=						0





     def __str__(							self			:				Optional[Any]					)->Union[str, Any]:
      __SCREAMING_SNAKE_CASE							:     str							=						"<" + str(self.entries					)[1:-1] + ">"
      return printed





     def 						__snake_case     (							self			:				Optional[int]  ,	UpperCamelCase			:				int					)->Tuple:
      self.entries.append(UpperCamelCase					)
      __SCREAMING_SNAKE_CASE							:     List[str]							=						self.length + 1





     def 						__snake_case     (							self			:				str					)->Union[str, Any]:
      __SCREAMING_SNAKE_CASE							:     Any							=						self.length - 1
      __SCREAMING_SNAKE_CASE							:     Dict							=						self.entries[self.front]
      # self.front-=1
      # self.entries = self.entries[self.front:]
      __SCREAMING_SNAKE_CASE							:     List[str]							=						self.entries[1:]
      return dequeued





     def 						__snake_case     (							self			:				Optional[int]  ,	UpperCamelCase			:				str					)->str:
      for _ in range(UpperCamelCase					):
       self.put(self.get()					)





     def 						__snake_case     (							self			:				Union[str, Any]					)->List[str]:
      return self.entries[0]





     def 						__snake_case     (							self			:				List[str]					)->Any:
      return self.length










def       lowerCAmelCase			(		lowerCAmelCase_			)->			int:
				lowerCAmelCase_			:   Optional[int]     					=					len(lowerCAmelCase_			)
				if n in (0, 1):
								return 0
				return sum(query * (n - i - 1) for i, query in enumerate(sorted(lowerCAmelCase_			)			)			)


if __name__ == "__main__":
						import doctest

						doctest.testmod()