from typing import Any




def    lowerCAmelCase_ (     __A							)     ->				list[Any]:







      '''simple docstring'''


      if not input_list:
            return []
      UpperCAmelCase__								=  [input_list.count(__A							) for value in input_list]
      UpperCAmelCase__								=  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()




def    lowerCAmelCase_ (     __A,  __A							)     ->				None:







      '''simple docstring'''


      UpperCAmelCase__								=  len(__A							)
      print("The following activities are selected:"							)

      # The first activity is always selected
      UpperCAmelCase__								=  0
      print(__A,  end=","							)

      # Consider rest of the activities
      for j in range(__A							):
            # If this activity has start time greater than
            # or equal to the finish time of previously
            # selected activity, then select it
            if start[j] >= finish[i]:
                  print(__A,  end=","							)
                  UpperCAmelCase__								=  j


if __name__ == "__main__":
      import doctest

      doctest.testmod()

      UpperCamelCase__											=					[1, 3, 0, 5, 8, 5]
      UpperCamelCase__											=					[2, 4, 6, 7, 9, 9]
      print_max_activities(start, finish)



