
"""simple docstring"""







def    __lowerCAmelCase    (_UpperCamelCase		):
	__lowerCAmelCase      :						str						      =				1
	for i in range(1	,  num + 1		):
		fact *= i
	return fact
def    __lowerCAmelCase    (_UpperCamelCase		):
	__lowerCAmelCase      :						Dict						      =				0
	while number > 0:
		__lowerCAmelCase      :						Optional[int]						      =				number % 10
		sum_of_digits += last_digit
		__lowerCAmelCase      :						Union[str, Any]						      =				number // 10  # Removing the last_digit from the given number
	return sum_of_digits
def    __lowerCAmelCase    (_UpperCamelCase = 100		):
	__lowerCAmelCase      :						List[Any]						      =				factorial(_UpperCamelCase		)
	__lowerCAmelCase      :						Dict						      =				split_and_add(_UpperCamelCase		)
	return result


if __name__ == "__main__":
							print(solution(int(input("""Enter the Number: """).strip())))

"""simple docstring"""







from __future__ import annotations
def    __lowerCAmelCase    (_UpperCamelCase		):
	__lowerCAmelCase      :						List[str]						      =				str(_UpperCamelCase		)
	return len(_UpperCamelCase		) == 9 and set(_UpperCamelCase		) == set('123456789'		)
def    __lowerCAmelCase    ():
	for base_num in range(9999	,  4999	,  -1		):
		__lowerCAmelCase      :						Union[str, Any]						      =				10_0002 * base_num
		if is_9_pandigital(_UpperCamelCase		):
			return candidate

	for base_num in range(333	,  99	,  -1		):
		__lowerCAmelCase      :						Dict						      =				100_2003 * base_num
		if is_9_pandigital(_UpperCamelCase		):
			return candidate

	return None


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