




'''simple docstring'''



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







'''simple docstring'''



def 			SCREAMING_SNAKE_CASE_			(							__A    :			list  )			->			list:
   if len(__A  ) <= 1:
      return lst

   _SCREAMING_SNAKE_CASE	=				1

   while i < len(__A  ):
      if lst[i - 1] <= lst[i]:
         i += 1
      else:
         _SCREAMING_SNAKE_CASE,	_SCREAMING_SNAKE_CASE	=				lst[i], lst[i - 1]
         i -= 1
         if i == 0:
            _SCREAMING_SNAKE_CASE	=				1

   return lst


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

