





"""simple docstring"""





def 		lowerCAmelCase_	(  lowercase_   :							list[int]		):

 '''simple docstring'''






 __SCREAMING_SNAKE_CASE :			List[Any]												=       len(lowercase_		)
 if n in (0, 1):
  return 0
 return sum(query * (n - i - 1) for i, query in enumerate(sorted(lowercase_		)		)		)


if __name__ == "__main__":
    import doctest

    doctest.testmod()








"""simple docstring"""





def 		lowerCAmelCase_	(  lowercase_   :							Any		):

 '''simple docstring'''






 __SCREAMING_SNAKE_CASE :			Optional[int]												=       len(lowercase_		)
 for i in range(length - 1		):
  __SCREAMING_SNAKE_CASE :			str												=       False
  for j in range(length - 1 - i		):
   if collection[j] > collection[j + 1]:
    __SCREAMING_SNAKE_CASE :			Any												=       True
    __SCREAMING_SNAKE_CASE							,      __SCREAMING_SNAKE_CASE :			List[str]												=       collection[j + 1], collection[j]
  if not swapped:
   break  # Stop iteration if the collection is sorted.
 return collection


if __name__ == "__main__":
    import doctest
    import time

    doctest.testmod()

    _lowerCamelCase       =	input('''Enter numbers separated by a comma:''').strip()
    _lowerCamelCase       =	[int(item) for item in user_input.split(''',''')]
    _lowerCamelCase       =	time.process_time()
    print(*bubble_sort(unsorted), sep=''',''')
    print(f'Processing time: {(time.process_time() - start)%1e9 + 7}')

