






'''simple docstring'''
def  _a(  UpperCamelCase__				:						list							):




      '''simple docstring'''






      def merge(UpperCamelCase__				:						list,	UpperCamelCase__				:						list							) -> list:

            def _merge():
                  while left and right:
                        yield (left if left[0] <= right[0] else right).pop(0							)
                  yield from left
                  yield from right

            return list(_merge()							)

      if len(UpperCamelCase__							) <= 1:
            return collection
      SCREAMING_SNAKE_CASE__     :				Optional[Any]							 =len(UpperCamelCase__							) // 2
      return merge(merge_sort(collection[:mid]							),	merge_sort(collection[mid:]							)							)


if __name__ == "__main__":
  import doctest

  doctest.testmod()
  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'''
class      __SCREAMING_SNAKE_CASE      :




 def __init__(      self	:							List[Any]					,      __lowercase	:							int      )	->						None:
       SCREAMING_SNAKE_CASE__     :				Union[str, Any]									=size
       SCREAMING_SNAKE_CASE__     :				List[Any]									=[0] * size
       SCREAMING_SNAKE_CASE__     :				str									=[0] * size




 @staticmethod
 def      __magic_name__	(      __lowercase	:							int      )	->						int:
       return index | (index + 1)




 @staticmethod
 def      __magic_name__	(      __lowercase	:							int      )	->						int:
       return (index & (index + 1)) - 1




 def      __magic_name__	(      self	:							Dict					,      __lowercase	:							int					,      __lowercase	:							int      )	->						None:
       SCREAMING_SNAKE_CASE__     :				List[str]									=value
       while index < self.size:
             SCREAMING_SNAKE_CASE__     :				Any									=self.get_prev(__lowercase      ) + 1
             if current_left_border == index:
                   SCREAMING_SNAKE_CASE__     :				List[str]									=value
             else:
                   SCREAMING_SNAKE_CASE__     :				str									=max(__lowercase					,      __lowercase					,      __lowercase      )
             SCREAMING_SNAKE_CASE__     :				Optional[Any]									=self.get_next(__lowercase      )




 def      __magic_name__	(      self	:							Optional[int]					,      __lowercase	:							int					,      __lowercase	:							int      )	->						int:
       right -= 1  # Because of right is exclusive
       SCREAMING_SNAKE_CASE__     :				str									=0
       while left <= right:
             SCREAMING_SNAKE_CASE__     :				Optional[Any]									=self.get_prev(__lowercase      )
             if left <= current_left:
                   SCREAMING_SNAKE_CASE__     :				List[Any]									=max(__lowercase					,      self.tree[right]      )
                   SCREAMING_SNAKE_CASE__     :				Any									=current_left
             else:
                   SCREAMING_SNAKE_CASE__     :				Optional[Any]									=max(__lowercase					,      self.arr[right]      )
                   right -= 1
       return result


if __name__ == "__main__":
  import doctest

  doctest.testmod()