
class      SCREAMING_SNAKE_CASE__  :





	'''simple docstring'''



	def __init__(						self			:					str			):


				'''simple docstring'''


				_snake_case						=    []
				_snake_case						=    0
				_snake_case						=    0



	def __str__(						self			:					str			):


				'''simple docstring'''


				_snake_case						=    '<' + str(self.entries			)[1:-1] + '>'
				return printed



	def 				A							(						self			:					Union[str, Any]    ,						lowercase			:					Tuple			):


				'''simple docstring'''


				self.entries.append(lowercase			)
				_snake_case						=    self.length + 1



	def 				A							(						self			:					int			):


				'''simple docstring'''


				_snake_case						=    self.length - 1
				_snake_case						=    self.entries[self.front]
				# self.front-=1
				# self.entries = self.entries[self.front:]
				_snake_case						=    self.entries[1:]
				return dequeued



	def 				A							(						self			:					str    ,						lowercase			:					Dict			):


				'''simple docstring'''


				for _ in range(lowercase			):
							self.put(self.get()			)



	def 				A							(						self			:					Tuple			):


				'''simple docstring'''


				return self.entries[0]



	def 				A							(						self			:					Union[str, Any]			):


				'''simple docstring'''


				return self.length

import random
import sys

_lowerCamelCase :       Tuple     					=    '''ABCDEFGHIJKLMNOPQRSTUVWXYZ'''






def  a_	( )				->						None:
			_snake_case						=    input('Enter message: '				)
			_snake_case						=    'LFWOAYUISVKMNXPBDCRJTQEGHZ'
			_snake_case						=    input('Encrypt/Decrypt [e/d]: '				)

			check_valid_key(__lowercase				)

			if resp.lower().startswith('e'				):
						_snake_case						=    'encrypt'
						_snake_case						=    encrypt_message(__lowercase ,      __lowercase				)
			elif resp.lower().startswith('d'				):
						_snake_case						=    'decrypt'
						_snake_case						=    decrypt_message(__lowercase ,      __lowercase				)

			print(f'''\n{mode.title()}ion: \n{translated}'''				)






def  a_	( __lowercase     :			str				)				->						None:
			_snake_case						=    list(__lowercase				)
			_snake_case						=    list(__lowercase				)
			key_list.sort()
			letters_list.sort()

			if key_list != letters_list:
						sys.exit('Error in the key or symbol set.'				)






def  a_	( __lowercase     :			str ,      __lowercase     :			str				)				->						str:
			return translate_message(__lowercase ,      __lowercase ,      'encrypt'				)






def  a_	( __lowercase     :			str ,      __lowercase     :			str				)				->						str:
			return translate_message(__lowercase ,      __lowercase ,      'decrypt'				)






def  a_	( __lowercase     :			str ,      __lowercase     :			str ,      __lowercase     :			str				)				->						str:
			_snake_case						=    ''
			_snake_case						=    LETTERS
			_snake_case						=    key

			if mode == "decrypt":
						_snake_case			,      _snake_case						=    chars_b, chars_a

			for symbol in message:
						if symbol.upper() in chars_a:
									_snake_case						=    chars_a.find(symbol.upper()				)
									if symbol.isupper():
												translated += chars_b[sym_index].upper()
									else:
												translated += chars_b[sym_index].lower()
						else:
									translated += symbol

			return translated






def  a_	( )				->						str:
			_snake_case						=    list(__lowercase				)
			random.shuffle(__lowercase				)
			return "".join(__lowercase				)


if __name__ == "__main__":
			main()