
"""simple docstring"""





def 						_lowerCAmelCase				(				UpperCamelCase_  ,				UpperCamelCase_  ,				UpperCamelCase_				):

		if exponent == 1:
				return base
		if exponent % 2 == 0:
				__SCREAMING_SNAKE_CASE            = _modexpt(UpperCamelCase_  ,				exponent // 2  ,				UpperCamelCase_				) % modulo_value
				return (x * x) % modulo_value
		else:
				return (base * _modexpt(UpperCamelCase_  ,				exponent - 1  ,				UpperCamelCase_				)) % modulo_value



def 						_lowerCAmelCase				(				UpperCamelCase_ = 1777  ,				UpperCamelCase_ = 1855  ,				UpperCamelCase_ = 8				):
		__SCREAMING_SNAKE_CASE            = base
		for _ in range(1  ,				UpperCamelCase_				):
				__SCREAMING_SNAKE_CASE            = _modexpt(UpperCamelCase_  ,				UpperCamelCase_  ,				10**digits				)

		return result


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






"""simple docstring"""





from __future__ import annotations

from fractions import Fraction



def 						_lowerCAmelCase				(				UpperCamelCase_  ,				UpperCamelCase_				):
		return (
		    num != den and num % 10 == den // 10 and (num // 10) / (den % 10) == num / den
		)



def 						_lowerCAmelCase				(				UpperCamelCase_				):
		__SCREAMING_SNAKE_CASE            = []
		__SCREAMING_SNAKE_CASE            = 11
		__SCREAMING_SNAKE_CASE            = int("""1""" + """0""" * digit_len				)
		for num in range(UpperCamelCase_  ,				UpperCamelCase_				):
				while den <= 99:
						if (num != den) and (num % 10 == den // 10) and (den % 10 != 0):
								if is_digit_cancelling(UpperCamelCase_  ,				UpperCamelCase_				):
										solutions.append(f"{num}/{den}"				)
						den += 1
				num += 1
				__SCREAMING_SNAKE_CASE            = 10
		return solutions



def 						_lowerCAmelCase				(				UpperCamelCase_ = 2				):
		__SCREAMING_SNAKE_CASE            = 1.0
		for fraction in fraction_list(UpperCamelCase_				):
				__SCREAMING_SNAKE_CASE            = Fraction(UpperCamelCase_				)
				result *= frac.denominator / frac.numerator
		return int(UpperCamelCase_				)


if __name__ == "__main__":
							print(solution())




