
def    a      ( a		,						a	)     ->str:




			'''simple docstring'''


			SCREAMING_SNAKE_CASE     						= ''''''
			for word_or_phrase in separated:
						if not isinstance(a		,						a	):
									raise Exception('''join() accepts only strings to be joined'''	)
						joined += word_or_phrase + separator
			return joined.strip(a	)


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

							testmod()

def    a      ( a	)     ->List[Any]:




			'''simple docstring'''


			SCREAMING_SNAKE_CASE     						= len(a	)
			while cur > 1:
						# Find the maximum number in arr
						SCREAMING_SNAKE_CASE     						= arr.index(max(arr[0:cur]	)	)
						# Reverse from 0 to mi
						SCREAMING_SNAKE_CASE     						= arr[mi::-1] + arr[mi + 1 : len(a	)]
						# Reverse whole list
						SCREAMING_SNAKE_CASE     						= arr[cur - 1 :: -1] + arr[cur : len(a	)]
						cur -= 1
			return arr


if __name__ == "__main__":
							__lowerCAmelCase					   =       input('Enter numbers separated by a comma:\n').strip()
							__lowerCAmelCase					   =       [int(item) for item in user_input.split(',')]
							print(pancake_sort(unsorted))