





def  _SCREAMING_SNAKE_CASE				(   a					,						a					,						a					,						a					,						a					,						a  )      ->      Dict:
					if index == r:
										for j in range(a  ):
															print(data[j]					,						end=' '  )
										print(' '  )
										return
					#  When no more elements are there to put in data[]
					if i >= n:
										return
					# current is included, put next at next location
					__A	:						List[Any]       =				arr[i]
					combination_util(a					,						a					,						a					,						index + 1					,						a					,						i + 1  )
					# current is excluded, replace it with
					# next (Note that i+1 is passed, but
					# index is not changed)
					combination_util(a					,						a					,						a					,						a					,						a					,						i + 1  )
					# The main function that prints all combinations
					# of size r in arr[] of size n. This function
					# mainly uses combinationUtil()







def  _SCREAMING_SNAKE_CASE				(   a					,						a					,						a  )      ->      int:
					# A temporary array to store all combination one by one
					__A	:						str       =				[0] * r
					# Print all combination using temporary array 'data[]'
					combination_util(a					,						a					,						a					,						0					,						a					,						0  )


if __name__ == "__main__":
				# Driver code to check the function above
				UpperCAmelCase						:   List[Any]			  =     [10, 20, 30, 40, 50]
				print_combination(arr, len(arr), 3)
				# This code is contributed by Ambuj sahu











def  _SCREAMING_SNAKE_CASE				(   a  )      ->      Tuple:
					__A    ,				__A	:						Optional[Any]       =				[], []
					while len(a  ) > 1:
										__A    ,				__A	:						Any       =				min(a  ), max(a  )
										start.append(a  )
										end.append(a  )
										collection.remove(a  )
										collection.remove(a  )
					end.reverse()
					return start + collection + end


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




