'''simple docstring'''




import math
import sys




def 							lowerCamelCase			(   UpperCAmelCase__ :      Optional[Any]				)    ->   Union[str, Any]:
							if number != int(lowercase__				):
														raise ValueError("""the value of input must be a natural number"""				)
							if number < 0:
														raise ValueError("""the value of input must not be a negative number"""				)
							if number == 0:
														return 1
							lowercase_      :    Any       		= [-1] * (number + 1)
							lowercase_      :    List[str]       		= 0
							for i in range(1   ,   number + 1				):
														lowercase_      :    int       		= sys.maxsize
														lowercase_      :    str       		= int(math.sqrt(lowercase__				)				)
														for j in range(1   ,   root + 1				):
																					lowercase_      :    Optional[Any]       		= 1 + answers[i - (j**2)]
																					lowercase_      :    Optional[int]       		= min(lowercase__   ,   lowercase__				)
														lowercase_      :    List[str]       		= answer
							return answers[number]


if __name__ == "__main__":
						import doctest

						doctest.testmod()






'''simple docstring'''




import argparse


_lowercase		:				Optional[int]	       =		"docs/source/_static/js/custom.js"




def 							lowerCamelCase			(   UpperCAmelCase__ :      Tuple				)    ->   Dict:
							with open(UpperCAmelCase__   ,   encoding="""utf-8"""   ,   newline="""\n"""				) as f:
														lowercase_      :    Optional[int]       		= f.readlines()
							lowercase_      :    Tuple       		= 0

							# First let's put the right version
							while not lines[index].startswith("""const stableVersion ="""				):
														index += 1
							lowercase_      :    Optional[Any]       		= F'''const stableVersion = "v{version}"\n'''

							# Then update the dictionary
							while not lines[index].startswith("""const versionMapping = {"""				):
														index += 1

							# We go until the end
							while not lines[index].startswith("""}"""				):
														index += 1
							# We add the new version at the end
							lines[index - 1] += F'''    "v{version}": "v{version}",\n'''

							with open(UpperCAmelCase__   ,   """w"""   ,   encoding="""utf-8"""   ,   newline="""\n"""				) as f:
														f.writelines(UpperCAmelCase__				)


if __name__ == "__main__":
						_lowercase		:				Union[str, Any]	       =		argparse.ArgumentParser()
						parser.add_argument("--version", help="Release version.")
						_lowercase		:				Dict	       =		parser.parse_args()
						update_custom_js(args.version)





