


from itertools import product






def      __lowerCamelCase		(				lowerCamelCase__						:		Optional[int]   ,				lowerCamelCase__						:		Optional[int]	):





			'''simple docstring'''




			lowerCamelCase  						=   sides_number
			lowerCamelCase  						=   max_face_number * dice_number
			lowerCamelCase  						=   [0] * (max_total + 1)

			lowerCamelCase  						=   1
			lowerCamelCase  						=   range(lowerCamelCase__   ,				max_face_number + 1	)
			for dice_numbers in product(lowerCamelCase__   ,				repeat=lowerCamelCase__	):
						lowerCamelCase  						=   sum(lowerCamelCase__	)
						totals_frequencies[total] += 1

			return totals_frequencies






def      __lowerCamelCase		(				):





			'''simple docstring'''




			lowerCamelCase  						=   total_frequency_distribution(
			    sides_number=4   ,				dice_number=9	)
			lowerCamelCase  						=   total_frequency_distribution(
			    sides_number=6   ,				dice_number=6	)

			lowerCamelCase  						=   0
			lowerCamelCase  						=   9
			lowerCamelCase  						=   4 * 9
			lowerCamelCase  						=   6
			for peter_total in range(lowerCamelCase__   ,				max_peter_total + 1	):
						peter_wins_count += peter_totals_frequencies[peter_total] * sum(
						    colin_totals_frequencies[min_colin_total:peter_total]	)

			lowerCamelCase  						=   (4**9) * (6**6)
			lowerCamelCase  						=   peter_wins_count / total_games_number

			lowerCamelCase  						=   round(lowerCamelCase__   ,				ndigits=7	)

			return rounded_peter_win_probability


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


"""simple docstring"""






import argparse


lowerCAmelCase__  :  List[str]						     =	'docs/source/_static/js/custom.js'



def   a_						(					lowerCamelCase       ):
				with open(lowerCamelCase					,			encoding='utf-8'					,			newline='\n'       ) as f:
								UpperCAmelCase__             =							f.readlines()
				UpperCAmelCase__             =							0

				# First let's put the right version
				while not lines[index].startswith('const stableVersion ='       ):
								index += 1
				UpperCAmelCase__             =							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(lowerCamelCase					,			'w'					,			encoding='utf-8'					,			newline='\n'       ) as f:
								f.writelines(lowerCamelCase       )


if __name__ == "__main__":
						lowerCAmelCase__  :  List[Any]						     =	argparse.ArgumentParser()
						parser.add_argument('--version', help='Release version.')
						lowerCAmelCase__  :  Optional[int]						     =	parser.parse_args()
						update_custom_js(args.version)



