


'''simple docstring'''






from functools import lru_cache






@lru_cache
def 		_A (lowerCAmelCase__     :List[str]						)      ->     Dict:




     '''simple docstring'''



     if num < 0:
          raise ValueError('Number should not be negative.'						)

     return 1 if num in (0, 1) else num * factorial(num - 1						)


if __name__ == "__main__":
 import doctest

 doctest.testmod()



__A				={str(digit): digit**5 for digit in range(1_0)}





def 			lowerCamelCase_ (				lowerCamelCase__    ):
				return sum(DIGITS_FIFTH_POWER[digit] for digit in str(lowerCamelCase__    )    )





def 			lowerCamelCase_ (				):
				return sum(
				    number
				    for number in range(1_0_0_0	, 1_0_0_0_0_0_0    )
				    if number == digits_fifth_powers_sum(lowerCamelCase__    )    )


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


