


'''simple docstring'''







from typing import Any






def 			lowercase				(_A					):







       """simple docstring"""







       if not input_list:
              return []
       _lowerCAmelCase    :							Optional[int]   			=       [input_list.count(_A					) for value in input_list]
       _lowerCAmelCase    :							int   			=       max(_A					)  # Gets the maximum count in the input list.
       # Gets values of modes
       return sorted({input_list[i] for i, value in enumerate(_A					) if value == y}					)


if __name__ == "__main__":
       import doctest

       doctest.testmod()





'''simple docstring'''







def 			lowercase				(_A					):







       """simple docstring"""







       _lowerCAmelCase    :							Dict   			=       len(_A					)
       while cur > 1:
              # Find the maximum number in arr
              _lowerCAmelCase    :							int   			=       arr.index(max(arr[0:cur]					)					)
              # Reverse from 0 to mi
              _lowerCAmelCase    :							Dict   			=       arr[mi::-1] + arr[mi + 1 : len(_A					)]
              # Reverse whole list
              _lowerCAmelCase    :							Optional[int]   			=       arr[cur - 1 :: -1] + arr[cur : len(_A					)]
              cur -= 1
       return arr


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

