



from math import factorial

__UpperCAmelCase	       =	{str(d): factorial(d) for d in range(10)}
def 		UpperCamelCase     (       snake_case__	:   int     )     ->					int:
   return sum(DIGIT_FACTORIAL[d] for d in str(snake_case__     )     )
def 		UpperCamelCase     (       )     ->					int:
   UpperCamelCase   :  int						     =     7 * factorial(9     ) + 1
   return sum(i for i in range(3	,					snake_case__     ) if sum_of_digit_factorial(snake_case__     ) == i     )


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








# tests directory-specific settings - this file is run automatically
# by pytest before any tests are run

import sys
import warnings
from os.path import abspath, dirname, join


# allow having multiple repository checkouts and not needing to remember to rerun
# 'pip install -e .[dev]' when switching between checkouts and running tests.
__UpperCAmelCase	       =	abspath(join(dirname(dirname(dirname(__file__))), '''src'''))
sys.path.insert(1, git_repo_path)


# silence FutureWarning warnings in tests since often we can't act on them until
# they become normal warnings - i.e. the tests still need to test the current functionality
warnings.simplefilter(action='''ignore''', category=FutureWarning)
def 		UpperCamelCase     (       snake_case__	:   Dict     )     ->					List[str]:
   from transformers.testing_utils import pytest_addoption_shared

   pytest_addoption_shared(snake_case__     )


def 		UpperCamelCase     (       snake_case__	:   List[Any]     )     ->					Dict:
   from transformers.testing_utils import pytest_terminal_summary_main

   UpperCamelCase   :  Optional[int]						     =     terminalreporter.config.getoption('--make-reports'     )
   if make_reports:
      pytest_terminal_summary_main(snake_case__	,					id=snake_case__     )



