'''simple docstring'''

from typing import Any
def       __UpperCamelCase	(       UpperCAmelCase					):
 if not input_list:
  return []
 lowercase__    :   Dict						= [input_list.count(UpperCAmelCase					) for value in input_list]
 lowercase__    :   Optional[Any]						= max(UpperCAmelCase					)  # Gets the maximum count in the input list.
 # Gets values of modes
 return sorted({input_list[i] for i, value in enumerate(UpperCAmelCase					) if value == y}					)


if __name__ == "__main__":
  import doctest

  doctest.testmod()


'''simple docstring'''

def       __UpperCamelCase	(       UpperCAmelCase					):

 def merge(UpperCAmelCase		,					UpperCAmelCase					) -> 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
 lowercase__    :   int						= len(UpperCAmelCase					) // 2
 return merge(merge_sort(collection[:mid]					)		,					merge_sort(collection[mid:]					)					)


if __name__ == "__main__":
  import doctest

  doctest.testmod()
  __a:			str	       =       input("""Enter numbers separated by a comma:\n""").strip()
  __a:			Optional[int]	       =       [int(item) for item in user_input.split(""",""")]
  print(*merge_sort(unsorted), sep=""",""")

