



"""simple docstring"""







def  __SCREAMING_SNAKE_CASE		(			lowerCamelCase_:							List[Any] ):
						"""simple docstring"""






						snake_case    ,			snake_case   :			Union[str, Any]						    = [], []
						while len(lowerCamelCase_ ) > 1:
												snake_case    ,			snake_case   :			List[str]						    = min(lowerCamelCase_ ), max(lowerCamelCase_ )
												start.append(lowerCamelCase_ )
												end.append(lowerCamelCase_ )
												collection.remove(lowerCamelCase_ )
												collection.remove(lowerCamelCase_ )
						end.reverse()
						return start + collection + end


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








"""simple docstring"""







import math
import sys

def  __SCREAMING_SNAKE_CASE		(			lowerCamelCase_:							int ):
						"""simple docstring"""






						if number != int(lowerCamelCase_ ):
												raise ValueError("the value of input must be a natural number" )
						if number < 0:
												raise ValueError("the value of input must not be a negative number" )
						if number == 0:
												return 1
						snake_case   :			List[str]						    = [-1] * (number + 1)
						snake_case   :			str						    = 0
						for i in range(1     ,		number + 1 ):
												snake_case   :			Tuple						    = sys.maxsize
												snake_case   :			Optional[Any]						    = int(math.sqrt(lowerCamelCase_ ) )
												for j in range(1     ,		root + 1 ):
																		snake_case   :			List[str]						    = 1 + answers[i - (j**2)]
																		snake_case   :			List[str]						    = min(lowerCamelCase_     ,		lowerCamelCase_ )
												snake_case   :			Dict						    = answer
						return answers[number]


if __name__ == "__main__":
			import doctest

			doctest.testmod()



