
from itertools import product
def    SCREAMING_SNAKE_CASE__		( lowerCAmelCase_				:			str       ,lowerCAmelCase_				:			Optional[int]							)    ->   int:







							"""simple docstring"""






							SCREAMING_SNAKE_CASE_	:							Optional[Any]											=sides_number
							SCREAMING_SNAKE_CASE_	:							Optional[Any]											=max_face_number * dice_number
							SCREAMING_SNAKE_CASE_	:							int											=[0] * (max_total + 1)

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

							return totals_frequencies
def    SCREAMING_SNAKE_CASE__		( )    ->   int:







							"""simple docstring"""






							SCREAMING_SNAKE_CASE_	:							int											=total_frequency_distribution(
							    sides_number=4       ,dice_number=9							)
							SCREAMING_SNAKE_CASE_	:							int											=total_frequency_distribution(
							    sides_number=6       ,dice_number=6							)

							SCREAMING_SNAKE_CASE_	:							str											=0
							SCREAMING_SNAKE_CASE_	:							str											=9
							SCREAMING_SNAKE_CASE_	:							Any											=4 * 9
							SCREAMING_SNAKE_CASE_	:							Optional[int]											=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]							)

							SCREAMING_SNAKE_CASE_	:							int											=(4**9) * (6**6)
							SCREAMING_SNAKE_CASE_	:							Dict											=peter_wins_count / total_games_number

							SCREAMING_SNAKE_CASE_	:							List[str]											=round(lowerCAmelCase_       ,ndigits=7							)

							return rounded_peter_win_probability


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








def 							_lowerCamelCase   (			SCREAMING_SNAKE_CASE		,				SCREAMING_SNAKE_CASE   ):
      '''simple docstring'''







      return int((input_a, input_a).count(0   ) != 0   )







def 							_lowerCamelCase   (			):
      '''simple docstring'''







      assert nand_gate(0		,				0   ) == 1
      assert nand_gate(0		,				1   ) == 1
      assert nand_gate(1		,				0   ) == 1
      assert nand_gate(1		,				1   ) == 0


if __name__ == "__main__":
      print(nand_gate(0, 0))
      print(nand_gate(0, 1))
      print(nand_gate(1, 0))
      print(nand_gate(1, 1))





