


"""simple docstring"""
import string







def     _a				(      _SCREAMING_SNAKE_CASE				)    ->				None:
							for key in range(len(string.ascii_uppercase				)				):
														snake_case_           =		""""""
														for symbol in message:
																					if symbol in string.ascii_uppercase:
																												snake_case_           =		string.ascii_uppercase.find(_SCREAMING_SNAKE_CASE				)
																												snake_case_           =		num - key
																												if num < 0:
																																			snake_case_           =		num + len(string.ascii_uppercase				)
																												snake_case_           =		translated + string.ascii_uppercase[num]
																					else:
																												snake_case_           =		translated + symbol
														print(f"""Decryption using Key #{key}: {translated}"""				)







def     _a				(      )    ->				None:
							snake_case_           =		input("""Encrypted message: """				)
							snake_case_           =		message.upper()
							decrypt(_SCREAMING_SNAKE_CASE				)


if __name__ == "__main__":
				import doctest

				doctest.testmod()
				main()







"""simple docstring"""
__SCREAMING_SNAKE_CASE							:    str		=    'Input must be a string of 8 numbers plus letter'
__SCREAMING_SNAKE_CASE							:    Dict		=    'TRWAGMYFPDXBNJZSQVHLCKE'







def 						_a				(      _SCREAMING_SNAKE_CASE				)    ->				bool:

							if not isinstance(_SCREAMING_SNAKE_CASE				, _SCREAMING_SNAKE_CASE				):
														snake_case_           =		f"""Expected string as input, found {type(_SCREAMING_SNAKE_CASE				).__name__}"""
														raise TypeError(_SCREAMING_SNAKE_CASE				)

							snake_case_           =		spanish_id.replace("""-"""				, """"""				).upper()
							if len(_SCREAMING_SNAKE_CASE				) != 9:
														raise ValueError(_SCREAMING_SNAKE_CASE				)

							try:
														snake_case_           =		int(spanish_id_clean[0:8]				)
														snake_case_           =		spanish_id_clean[8]
							except ValueError as ex:
														raise ValueError(_SCREAMING_SNAKE_CASE				) from ex

							if letter.isdigit():
														raise ValueError(_SCREAMING_SNAKE_CASE				)

							return letter == LOOKUP_LETTERS[number % 23]


if __name__ == "__main__":
				import doctest

				doctest.testmod()



