
'''simple docstring'''

from typing import Literal

UpperCAmelCase__				:	Optional[int]					=						"ABCDEFGHIJKLMNOPQRSTUVWXYZ"







def 					A       ( UpperCamelCase_   :       str  ,		UpperCamelCase_   :       str  ,		UpperCamelCase_   :       Literal["encrypt", "decrypt"] )   ->    str:







			'''simple docstring'''



			lowerCAmelCase__									=							LETTERS if mode == "decrypt" else key
			lowerCAmelCase__									=							key if mode == "decrypt" else LETTERS
			lowerCAmelCase__									=							""
			# loop through each symbol in the message
			for symbol in message:
						if symbol.upper() in chars_a:
									# encrypt/decrypt the symbol
									lowerCAmelCase__									=							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       ( UpperCamelCase_   :       str  ,		UpperCamelCase_   :       str )   ->    str:







			'''simple docstring'''



			return translate_message(UpperCamelCase_  ,		UpperCamelCase_  ,		"encrypt" )







def 					A       ( UpperCamelCase_   :       str  ,		UpperCamelCase_   :       str )   ->    str:







			'''simple docstring'''



			return translate_message(UpperCamelCase_  ,		UpperCamelCase_  ,		"decrypt" )







def 					A       ( )   ->    None:







			'''simple docstring'''



			lowerCAmelCase__									=							"Hello World"
			lowerCAmelCase__									=							"QWERTYUIOPASDFGHJKLZXCVBNM"
			lowerCAmelCase__									=							"decrypt"  # set to 'encrypt' or 'decrypt'

			if mode == "encrypt":
						lowerCAmelCase__									=							encrypt_message(UpperCamelCase_  ,		UpperCamelCase_ )
			elif mode == "decrypt":
						lowerCAmelCase__									=							decrypt_message(UpperCamelCase_  ,		UpperCamelCase_ )
			print(F"""Using the key {key}, the {mode}ed message is: {translated}""" )


if __name__ == "__main__":
						import doctest

						doctest.testmod()
						main()







'''simple docstring'''

def 					A       ( )   ->    str:







			'''simple docstring'''



			lowerCAmelCase__									=							1

			while True:
						if (
						    sorted(str(UpperCamelCase_ ) )
						    == sorted(str(2 * i ) )
						    == sorted(str(3 * i ) )
						    == sorted(str(4 * i ) )
						    == sorted(str(5 * i ) )
						    == sorted(str(6 * i ) )
						):
									return i

						i += 1


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





