'''simple docstring'''




from __future__ import annotations

from fractions import Fraction




def 							lowerCamelCase			(   UpperCAmelCase__ :      int   ,   UpperCAmelCase__ :      int				)    ->   bool:
							return (
							    num != den and num % 10 == den // 10 and (num // 10) / (den % 10) == num / den
							)




def 							lowerCamelCase			(   UpperCAmelCase__ :      int				)    ->   list[str]:
							lowercase_      :    Union[str, Any]       		= []
							lowercase_      :    List[str]       		= 11
							lowercase_      :    Union[str, Any]       		= 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
														lowercase_      :    List[Any]       		= 10
							return solutions




def 							lowerCamelCase			(   UpperCAmelCase__ :      int = 2				)    ->   int:
							lowercase_      :    int       		= 1.0
							for fraction in fraction_list(UpperCAmelCase__				):
														lowercase_      :    List[str]       		= Fraction(UpperCAmelCase__				)
														result *= frac.denominator / frac.numerator
							return int(UpperCAmelCase__				)


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






'''simple docstring'''




_lowercase		:				int	       =		"ABCDEFGHIJKLMNOPQRSTUVWXYZ"




def 							lowerCamelCase			(   )    ->   None:
							lowercase_      :    List[Any]       		= input("""Enter message: """				)
							lowercase_      :    str       		= input("""Enter key [alphanumeric]: """				)
							lowercase_      :    List[Any]       		= input("""Encrypt/Decrypt [e/d]: """				)

							if mode.lower().startswith("""e"""				):
														lowercase_      :    List[str]       		= """encrypt"""
														lowercase_      :    Optional[int]       		= encrypt_message(UpperCAmelCase__   ,   UpperCAmelCase__				)
							elif mode.lower().startswith("""d"""				):
														lowercase_      :    Any       		= """decrypt"""
														lowercase_      :    Optional[Any]       		= decrypt_message(UpperCAmelCase__   ,   UpperCAmelCase__				)

							print(F'''\n{mode.title()}ed message:'''				)
							print(UpperCAmelCase__				)




def 							lowerCamelCase			(   UpperCAmelCase__ :      str   ,   UpperCAmelCase__ :      str				)    ->   str:
							return translate_message(UpperCAmelCase__   ,   UpperCAmelCase__   ,   """encrypt"""				)




def 							lowerCamelCase			(   UpperCAmelCase__ :      str   ,   UpperCAmelCase__ :      str				)    ->   str:
							return translate_message(UpperCAmelCase__   ,   UpperCAmelCase__   ,   """decrypt"""				)




def 							lowerCamelCase			(   UpperCAmelCase__ :      str   ,   UpperCAmelCase__ :      str   ,   UpperCAmelCase__ :      str				)    ->   str:
							lowercase_      :    Union[str, Any]       		= []
							lowercase_      :    List[Any]       		= 0
							lowercase_      :    str       		= key.upper()

							for symbol in message:
														lowercase_      :    Tuple       		= LETTERS.find(symbol.upper()				)
														if num != -1:
																					if mode == "encrypt":
																												num += LETTERS.find(key[key_index]				)
																					elif mode == "decrypt":
																												num -= LETTERS.find(key[key_index]				)

																					num %= len(UpperCAmelCase__				)

																					if symbol.isupper():
																												translated.append(LETTERS[num]				)
																					elif symbol.islower():
																												translated.append(LETTERS[num].lower()				)

																					key_index += 1
																					if key_index == len(UpperCAmelCase__				):
																												lowercase_      :    Any       		= 0
														else:
																					translated.append(UpperCAmelCase__				)
							return "".join(UpperCAmelCase__				)


if __name__ == "__main__":
						main()





