


"""simple docstring"""






from math import factorial

__snake_case		=       {str(d): factorial(d) for d in range(10)}
def       A_   (   _lowerCAmelCase     :					int       ):






     """simple docstring"""

     return sum(DIGIT_FACTORIAL[d] for d in str(_lowerCAmelCase       )       )
def       A_   (   ):






     """simple docstring"""

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


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



"""simple docstring"""






def       A_   (   _lowerCAmelCase     :					Dict=2_81_23       ):






     """simple docstring"""

     _a    	=				[1] * (limit + 1)

     for i in range(2,     int(limit**0.5       ) + 1       ):
          sum_divs[i * i] += i
          for k in range(i + 1,     limit // i + 1       ):
               sum_divs[k * i] += k + i

     _a    	=				set()
     _a    	=				0

     for n in range(1,     limit + 1       ):
          if sum_divs[n] > n:
               abundants.add(_lowerCAmelCase       )

          if not any((n - a in abundants) for a in abundants       ):
               res += n

     return res


if __name__ == "__main__":
   print(solution())