




from math import factorial

lowerCamelCase				:		Optional[Any]     =   {str(d): factorial(d) for d in range(10)}

def 			_SCREAMING_SNAKE_CASE			(							lowercase	:       int     ):


      '''simple docstring'''



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

def 			_SCREAMING_SNAKE_CASE			(							):


      '''simple docstring'''



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


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









def 			_SCREAMING_SNAKE_CASE			(							lowercase	:       list     ):


      '''simple docstring'''



      for i in range(len(lowercase     ) - 1	,							0	,							-1     ):
            lowerCamelCase_		     =    False

            for j in range(lowercase	,							0	,							-1     ):
                  if unsorted[j] < unsorted[j - 1]:
                        lowerCamelCase_     ,				lowerCamelCase_		     =    unsorted[j - 1], unsorted[j]
                        lowerCamelCase_		     =    True

            for j in range(lowercase     ):
                  if unsorted[j] > unsorted[j + 1]:
                        lowerCamelCase_     ,				lowerCamelCase_		     =    unsorted[j + 1], unsorted[j]
                        lowerCamelCase_		     =    True

            if not swapped:
                  break
      return unsorted


if __name__ == "__main__":
 import doctest

 doctest.testmod()
 lowerCamelCase				:		Any     =   input("Enter numbers separated by a comma:\n").strip()
 lowerCamelCase				:		Dict     =   [int(item) for item in user_input.split(",")]
 print(F"""{cocktail_shaker_sort(unsorted) = }""")



