



'''simple docstring'''
from itertools import product






def A__       (	UpperCAmelCase_    ,    UpperCAmelCase_				):
						_UpperCamelCase   :						Optional[int]												=  sides_number
						_UpperCamelCase   :						int												=  max_face_number * dice_number
						_UpperCamelCase   :						int												=  [0] * (max_total + 1)

						_UpperCamelCase   :						Optional[int]												=  1
						_UpperCamelCase   :						Optional[int]												=  range(UpperCAmelCase_    ,    max_face_number + 1				)
						for dice_numbers in product(UpperCAmelCase_    ,    repeat=UpperCAmelCase_				):
												_UpperCamelCase   :						Any												=  sum(UpperCAmelCase_				)
												totals_frequencies[total] += 1

						return totals_frequencies






def A__       (	):
						_UpperCamelCase   :						List[Any]												=  total_frequency_distribution(
						    sides_number=4    ,    dice_number=9				)
						_UpperCamelCase   :						Optional[Any]												=  total_frequency_distribution(
						    sides_number=6    ,    dice_number=6				)

						_UpperCamelCase   :						Optional[int]												=  0
						_UpperCamelCase   :						Optional[Any]												=  9
						_UpperCamelCase   :						List[str]												=  4 * 9
						_UpperCamelCase   :						Tuple												=  6
						for peter_total in range(UpperCAmelCase_    ,    max_peter_total + 1				):
												peter_wins_count += peter_totals_frequencies[peter_total] * sum(
												    colin_totals_frequencies[min_colin_total:peter_total]				)

						_UpperCamelCase   :						Any												=  (4**9) * (6**6)
						_UpperCamelCase   :						List[str]												=  peter_wins_count / total_games_number

						_UpperCamelCase   :						Dict												=  round(UpperCAmelCase_    ,    ndigits=7				)

						return rounded_peter_win_probability


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







'''simple docstring'''
def A__       (	UpperCAmelCase_    ,    UpperCAmelCase_				):
						return base * power(UpperCAmelCase_    ,    (exponent - 1)				) if exponent else 1


if __name__ == "__main__":
					print('Raise base to the power of exponent using recursion...')
					snake_case_					:      int    			=    int(input('Enter the base: ').strip())
					snake_case_					:      Optional[int]    			=    int(input('Enter the exponent: ').strip())
					snake_case_					:      Optional[int]    			=    power(base, abs(exponent))
					if exponent < 0:  # power() does not properly deal w/ negative exponents
										snake_case_					:      List[Any]    			=    1 / result
					print(F"""{base} to the power of {exponent} is {result}""")


