




'''simple docstring'''



from typing import Any




def   lowercase__(			__UpperCamelCase:					list    ):

      """simple docstring"""






      if not input_list:
            return []
      SCREAMING_SNAKE_CASE   :      Union[str, Any]    					=						[input_list.count(__UpperCamelCase    ) for value in input_list]
      SCREAMING_SNAKE_CASE   :      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'''

from abc import ABC, abstractmethod
from argparse import ArgumentParser




class      A     (   SCREAMING_SNAKE_CASE__    ):






 """simple docstring"""





 @staticmethod
 @abstractmethod
 def 	_UpperCAmelCase							(				__lowerCAmelCase			):
       raise NotImplementedError()





 @abstractmethod
 def 	_UpperCAmelCase							(				self			):
       raise NotImplementedError()






