from math import factorial

a_							=      {str(d): factorial(d) for d in range(10)}




def       __lowerCAmelCase      (						A_   : int					)    ->  int:
  return sum(DIGIT_FACTORIAL[d] for d in str(A_					)					)




def       __lowerCAmelCase      (						)    ->  int:
  __UpperCAmelCase						    =       7 * factorial(9					) + 1
  return sum(i for i in range(3						,	A_					) if sum_of_digit_factorial(A_					) == i					)


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




import inspect
import unittest


class 			UpperCAmelCase__    (		unittest.TestCase					):



  """simple docstring"""






  def 	_UpperCAmelCase				(				self:			Union[str, Any]   ) -> Dict:




    '''simple docstring'''




    try:
      import diffusers  # noqa: F401
    except ImportError:
      assert False






  def 	_UpperCAmelCase				(				self:			Dict   ) -> Dict:




    '''simple docstring'''




    import diffusers
    from diffusers.dependency_versions_table import deps

    __UpperCAmelCase						    =       inspect.getmembers(__lowerCAmelCase				,				inspect.isclass   )

    for cls_name, cls_module in all_classes:
      if "dummy_" in cls_module.__module__:
        for backend in cls_module._backends:
          if backend == "k_diffusion":
            __UpperCAmelCase						    =       "k-diffusion"
          elif backend == "invisible_watermark":
            __UpperCAmelCase						    =       "invisible-watermark"
          assert backend in deps, F'''{backend} is not in the deps table!'''



