


from itertools import product



def 			lowerCAmelCase (		lowerCAmelCase_ ,   lowerCAmelCase_ )-> list[int]:
				lowerCAmelCase_ :      int    				=				sides_number
				lowerCAmelCase_ :      List[str]    				=				max_face_number * dice_number
				lowerCAmelCase_ :      Any    				=				[0] * (max_total + 1)

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

				return totals_frequencies



def 			lowerCAmelCase (		)-> float:
				lowerCAmelCase_ :      List[Any]    				=				total_frequency_distribution(
				    sides_number=4 ,   dice_number=9 )
				lowerCAmelCase_ :      Optional[int]    				=				total_frequency_distribution(
				    sides_number=6 ,   dice_number=6 )

				lowerCAmelCase_ :      int    				=				0
				lowerCAmelCase_ :      List[str]    				=				9
				lowerCAmelCase_ :      Union[str, Any]    				=				4 * 9
				lowerCAmelCase_ :      Tuple    				=				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_ :      Union[str, Any]    				=				(4**9) * (6**6)
				lowerCAmelCase_ :      Union[str, Any]    				=				peter_wins_count / total_games_number

				lowerCAmelCase_ :      Optional[Any]    				=				round(lowerCAmelCase_ ,   ndigits=7 )

				return rounded_peter_win_probability


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



import re



def 			lowerCAmelCase (		lowerCAmelCase_ )-> bool:
				lowerCAmelCase_ :      Tuple    				=				re.compile(r'''^(\+91[\-\s]?)?[0]?(91)?[789]\d{9}$''' )
				if match := re.search(lowerCAmelCase_ ,   lowerCAmelCase_ ):
								return match.string == phone
				return False


if __name__ == "__main__":
						print(indian_phone_validator("""+918827897895"""))