


"""simple docstring"""





from typing import Literal

snake_case__		:  List[Any]     					=					'''ABCDEFGHIJKLMNOPQRSTUVWXYZ'''


def   _snake_case    (    _snake_case					:      Any			, _snake_case					:      Tuple			, _snake_case					:      Union[str, Any]      ):
      lowerCAmelCase       :						Union[str, Any]							= LETTERS if mode == '''decrypt''' else key
      lowerCAmelCase       :						Optional[int]							= key if mode == '''decrypt''' else LETTERS
      lowerCAmelCase       :						Any							= ''''''
      # loop through each symbol in the message
      for symbol in message:
            if symbol.upper() in chars_a:
                  # encrypt/decrypt the symbol
                  lowerCAmelCase       :						Optional[Any]							= chars_a.find(symbol.upper()      )
                  if symbol.isupper():
                        translated += chars_b[sym_index].upper()
                  else:
                        translated += chars_b[sym_index].lower()
            else:
                  # symbol is not in LETTERS, just add it
                  translated += symbol
      return translated


def   _snake_case    (    _snake_case					:      Tuple			, _snake_case					:      str      ):
      return translate_message(_a			, _a			, '''encrypt'''      )


def   _snake_case    (    _snake_case					:      str			, _snake_case					:      Union[str, Any]      ):
      return translate_message(_a			, _a			, '''decrypt'''      )


def   _snake_case    (    ):
      lowerCAmelCase       :						Optional[Any]							= '''Hello World'''
      lowerCAmelCase       :						Any							= '''QWERTYUIOPASDFGHJKLZXCVBNM'''
      lowerCAmelCase       :						Dict							= '''decrypt'''  # set to 'encrypt' or 'decrypt'

      if mode == "encrypt":
            lowerCAmelCase       :						Union[str, Any]							= encrypt_message(_a			, _a      )
      elif mode == "decrypt":
            lowerCAmelCase       :						int							= decrypt_message(_a			, _a      )
      print(f'''Using the key {key}, the {mode}ed message is: {translated}'''      )


if __name__ == "__main__":
 import doctest

 doctest.testmod()
 main()






from itertools import combinations_with_replacement






def 	lowerCamelCase_       (			_a = 100			):




		"""simple docstring"""






		lowerCAmelCase__  :     list[int]       	=   [*list(range(1      ,  21			)			), 25]
		lowerCAmelCase__  :     list[int]       	=   [2 * x for x in range(1      ,  21			)] + [50]
		lowerCAmelCase__  :     list[int]       	=   [3 * x for x in range(1      ,  21			)]
		lowerCAmelCase__  :     list[int]       	=   singles + doubles + triples + [0]

		lowerCAmelCase__  :     int       	=   0
		lowerCAmelCase__  :     int
		lowerCAmelCase__  :     int
		lowerCAmelCase__  :     int
		lowerCAmelCase__  :     int

		for double in doubles:
				for throwa, throwa in combinations_with_replacement(_a      ,  2			):
						lowerCAmelCase__  :     Dict       	=   double + throwa + throwa
						if checkout_total < limit:
								num_checkouts += 1

		return num_checkouts


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




