

"""simple docstring"""





from math import factorial

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




def   _A  (  UpperCamelCase_     :       int)	->						int:
   '''simple docstring'''


   return sum(DIGIT_FACTORIAL[d] for d in str(UpperCamelCase_))




def   _A  (  )	->						int:
   '''simple docstring'''


   __lowercase								=						7 * factorial(9) + 1
   return sum(i for i in range(3,			UpperCamelCase_) if sum_of_digit_factorial(UpperCamelCase_) == i)


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







"""simple docstring"""





import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin




class 					_lowerCAmelCase  (	unittest.TestCase     ,lowercase   ):







 """simple docstring"""







 def 					_lowercase (			self							:			List[Any]	):
    __lowercase								=						load_tool("text-classification"	)
    self.tool.setup()
    __lowercase								=						load_tool("text-classification",					remote=UpperCAmelCase__	)


 def 					_lowercase (			self							:			str	):
    __lowercase								=						self.tool("That's quite cool",					["positive", "negative"]	)
    self.assertEqual(UpperCAmelCase__,					"positive"	)


 def 					_lowercase (			self							:			str	):
    __lowercase								=						self.remote_tool("That's quite cool",					["positive", "negative"]	)
    self.assertEqual(UpperCAmelCase__,					"positive"	)


 def 					_lowercase (			self							:			List[str]	):
    __lowercase								=						self.tool(text="That's quite cool",					labels=["positive", "negative"]	)
    self.assertEqual(UpperCAmelCase__,					"positive"	)



 def 					_lowercase (			self							:			Tuple	):
    __lowercase								=						self.remote_tool(text="That's quite cool",					labels=["positive", "negative"]	)
    self.assertEqual(UpperCAmelCase__,					"positive"	)




