
from functools import lru_cache







@lru_cache
def 							A__       (    lowerCamelCase    )	->						int:
				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()








def 							A__       (    lowerCamelCase = 4_00_00_00    )	->						int:
				UpperCamelCase_:				Dict						=    []
				UpperCamelCase_, UpperCamelCase_:				Optional[int]						=    0, 1
				while b <= n:
								if b % 2 == 0:
												even_fibs.append(lowerCamelCase    )
								UpperCamelCase_, UpperCamelCase_:				int						=    b, a + b
				return sum(lowerCamelCase    )


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






