






"""simple docstring"""






def  __lowerCamelCase					(					lowerCAmelCase__				):
				A__ ,			A__							 =       [], []
				while len(lowerCAmelCase__				) > 1:
								A__ ,			A__							 =       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__":
					SCREAMING_SNAKE_CASE						:						Optional[Any]					   =       input('''Enter numbers separated by a comma:\n''').strip()
					SCREAMING_SNAKE_CASE						:						str					   =       [int(item) for item in user_input.split(''',''')]
					print(*merge_sort(unsorted), sep=''',''')










"""simple docstring"""






print((lambda quine: quine % quine)('''print((lambda quine: quine %% quine)(%r))'''))


