




from math import factorial

lowerCamelCase       :       List[Any]        =    {str(d): factorial(d) for d in range(1_0)}




def 						SCREAMING_SNAKE_CASE__					(    lowercase     )  ->   int:
   return sum(DIGIT_FACTORIAL[d] for d in str(__SCREAMING_SNAKE_CASE     )     )




def 						SCREAMING_SNAKE_CASE__					(    )  ->   int:
   snake_case      :				Dict				=       7 * factorial(9     ) + 1
   return sum(i for i in range(3						,__SCREAMING_SNAKE_CASE     ) if sum_of_digit_factorial(__SCREAMING_SNAKE_CASE     ) == i     )


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








"""simple docstring"""


from __future__ import annotations






def     a__    (    __SCREAMING_SNAKE_CASE )	->	bool:
		__lowerCAmelCase:       Tuple          =			str(__SCREAMING_SNAKE_CASE )
		return len(__SCREAMING_SNAKE_CASE ) == 9 and set(__SCREAMING_SNAKE_CASE ) == set("123456789" )






def     a__    (    )	->	int | None:
		for base_num in range(9_9_9_9					, 4_9_9_9					, -1 ):
				__lowerCAmelCase:       Tuple          =			1_0_0_0_0_2 * base_num
				if is_9_pandigital(__SCREAMING_SNAKE_CASE ):
						return candidate

		for base_num in range(3_3_3					, 9_9					, -1 ):
				__lowerCAmelCase:       int          =			1_0_0_2_0_0_3 * base_num
				if is_9_pandigital(__SCREAMING_SNAKE_CASE ):
						return candidate

		return None


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


