


from typing import Any
def 				UpperCamelCase__					(  SCREAMING_SNAKE_CASE__						):
 if not input_list:
  return []
 __lowerCamelCase		:							int		 =						[input_list.count(SCREAMING_SNAKE_CASE__						) for value in input_list]
 __lowerCamelCase		:							Union[str, Any]		 =						max(SCREAMING_SNAKE_CASE__						)  # Gets the maximum count in the input list.
 # Gets values of modes
 return sorted({input_list[i] for i, value in enumerate(SCREAMING_SNAKE_CASE__						) if value == y}						)


if __name__ == "__main__":
       import doctest

       doctest.testmod()





from __future__ import annotations
def 				UpperCamelCase__					(  SCREAMING_SNAKE_CASE__						):
 __lowerCamelCase		:							List[Any]		 =						str(SCREAMING_SNAKE_CASE__						)
 return len(SCREAMING_SNAKE_CASE__						) == 9 and set(SCREAMING_SNAKE_CASE__						) == set('123456789'						)
def 				UpperCamelCase__					(  ):
 for base_num in range(9_999      ,	4_999      ,	-1						):
  __lowerCamelCase		:							Tuple		 =						100_002 * base_num
  if is_9_pandigital(SCREAMING_SNAKE_CASE__						):
   return candidate

 for base_num in range(333      ,	99      ,	-1						):
  __lowerCamelCase		:							Union[str, Any]		 =						1_002_003 * base_num
  if is_9_pandigital(SCREAMING_SNAKE_CASE__						):
   return candidate

 return None


if __name__ == "__main__":
       print(F"""{solution() = }""")

