

from typing import Literal

lowerCAmelCase       :				Optional[int]         =					"ABCDEFGHIJKLMNOPQRSTUVWXYZ"

def 				A_					(							a   ,				a   ,				a					):

      """simple docstring"""



      SCREAMING_SNAKE_CASE_			:					int          =       LETTERS if mode == 'decrypt' else key
      SCREAMING_SNAKE_CASE_			:					List[str]          =       key if mode == 'decrypt' else LETTERS
      SCREAMING_SNAKE_CASE_			:					Tuple          =       ''
      # loop through each symbol in the message
      for symbol in message:
            if symbol.upper() in chars_a:
                  # encrypt/decrypt the symbol
                  SCREAMING_SNAKE_CASE_			:					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 				A_					(							a   ,				a					):

      """simple docstring"""



      return translate_message(UpperCamelCase_   ,				UpperCamelCase_   ,				'encrypt'					)

def 				A_					(							a   ,				a					):

      """simple docstring"""



      return translate_message(UpperCamelCase_   ,				UpperCamelCase_   ,				'decrypt'					)

def 				A_					(							):

      """simple docstring"""



      SCREAMING_SNAKE_CASE_			:					int          =       'Hello World'
      SCREAMING_SNAKE_CASE_			:					int          =       'QWERTYUIOPASDFGHJKLZXCVBNM'
      SCREAMING_SNAKE_CASE_			:					Tuple          =       'decrypt'  # set to 'encrypt' or 'decrypt'

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


if __name__ == "__main__":
    import doctest

    doctest.testmod()
    main()





from math import factorial

def 				A_					(							a   ,				a					):

      """simple docstring"""



      return factorial(a					) / (factorial(a					) * factorial(n - r					))

def 				A_					(							):

      """simple docstring"""



      SCREAMING_SNAKE_CASE_			:					Union[str, Any]          =       0

      for i in range(1   ,				1_0_1					):
            for j in range(1   ,				i + 1					):
                  if combinations(a   ,				a					) > 1e6:
                        total += 1
      return total


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






