



def    snake_case_				(    _SCREAMING_SNAKE_CASE   ):
	__lowercase       ,    __lowercase		       =			[], []
	while len(_SCREAMING_SNAKE_CASE   ) > 1:
		__lowercase       ,    __lowercase		       =			min(_SCREAMING_SNAKE_CASE   ), max(_SCREAMING_SNAKE_CASE   )
		start.append(_SCREAMING_SNAKE_CASE   )
		end.append(_SCREAMING_SNAKE_CASE   )
		collection.remove(_SCREAMING_SNAKE_CASE   )
		collection.remove(_SCREAMING_SNAKE_CASE   )
	end.reverse()
	return start + collection + end


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








import os
import sys
from contextlib import contextmanager


# Windows only
if os.name == "nt":
	import ctypes
	import msvcrt  # noqa

	class   _A   ( ctypes.Structure	):


							'''simple docstring'''





							_snake_case			:     Optional[Any]      							=      [("""size""", ctypes.c_int), ("""visible""", ctypes.c_byte)]



def    snake_case_				(    ):
	if os.name == "nt":
		__lowercase		       =			CursorInfo()
		__lowercase		       =			ctypes.windll.kernelaa.GetStdHandle(-1_1   )
		ctypes.windll.kernelaa.GetConsoleCursorInfo(_SCREAMING_SNAKE_CASE  ,	ctypes.byref(_SCREAMING_SNAKE_CASE   )   )
		__lowercase		       =			False
		ctypes.windll.kernelaa.SetConsoleCursorInfo(_SCREAMING_SNAKE_CASE  ,	ctypes.byref(_SCREAMING_SNAKE_CASE   )   )
	elif os.name == "posix":
		sys.stdout.write("\033[?25l"   )
		sys.stdout.flush()



def    snake_case_				(    ):
	if os.name == "nt":
		__lowercase		       =			CursorInfo()
		__lowercase		       =			ctypes.windll.kernelaa.GetStdHandle(-1_1   )
		ctypes.windll.kernelaa.GetConsoleCursorInfo(_SCREAMING_SNAKE_CASE  ,	ctypes.byref(_SCREAMING_SNAKE_CASE   )   )
		__lowercase		       =			True
		ctypes.windll.kernelaa.SetConsoleCursorInfo(_SCREAMING_SNAKE_CASE  ,	ctypes.byref(_SCREAMING_SNAKE_CASE   )   )
	elif os.name == "posix":
		sys.stdout.write("\033[?25h"   )
		sys.stdout.flush()



@contextmanager
def    snake_case_				(    ):
	try:
		hide_cursor()
		yield
	finally:
		show_cursor()



