
__A				={
    '''a''': '''AAAAA''',
    '''b''': '''AAAAB''',
    '''c''': '''AAABA''',
    '''d''': '''AAABB''',
    '''e''': '''AABAA''',
    '''f''': '''AABAB''',
    '''g''': '''AABBA''',
    '''h''': '''AABBB''',
    '''i''': '''ABAAA''',
    '''j''': '''BBBAA''',
    '''k''': '''ABAAB''',
    '''l''': '''ABABA''',
    '''m''': '''ABABB''',
    '''n''': '''ABBAA''',
    '''o''': '''ABBAB''',
    '''p''': '''ABBBA''',
    '''q''': '''ABBBB''',
    '''r''': '''BAAAA''',
    '''s''': '''BAAAB''',
    '''t''': '''BAABA''',
    '''u''': '''BAABB''',
    '''v''': '''BBBAB''',
    '''w''': '''BABAA''',
    '''x''': '''BABAB''',
    '''y''': '''BABBA''',
    '''z''': '''BABBB''',
    ''' ''': ''' ''',
}


__A				={value: key for key, value in encode_dict.items()}





def 			lowerCamelCase_ (				lowerCamelCase__    ):
				lowerCamelCase_						=			""
				for letter in word.lower():
								if letter.isalpha() or letter == " ":
												encoded += encode_dict[letter]
								else:
												raise Exception("encode() accepts only letters of the alphabet and spaces"    )
				return encoded





def 			lowerCamelCase_ (				lowerCamelCase__    ):
				if set(SCREAMING_SNAKE_CASE_    ) - {"A", "B", " "} != set():
								raise Exception("decode() accepts only \'A\', \'B\' and spaces"    )
				lowerCamelCase_						=			""
				for word in coded.split():
								while len(SCREAMING_SNAKE_CASE_    ) != 0:
												decoded += decode_dict[word[:5]]
												lowerCamelCase_						=			word[5:]
								decoded += " "
				return decoded.strip()


if __name__ == "__main__":
			from doctest import testmod

			testmod()






"""simple docstring"""




from __future__ import annotations


def     lowercase			(SCREAMING_SNAKE_CASE_		:				str  )   ->						list[int]:
						return [ord(SCREAMING_SNAKE_CASE_  ) - 96 for elem in plain]


def     lowercase			(SCREAMING_SNAKE_CASE_		:				list[int]  )   ->						str:
						return "".join(chr(elem + 96  ) for elem in encoded  )


def     lowercase			()   ->						None:
						SCREAMING_SNAKE_CASE													=					encode(input('-> '  ).strip().lower()  )
						print('Encoded: ' ,			SCREAMING_SNAKE_CASE_  )
						print('Decoded:' ,			decode(SCREAMING_SNAKE_CASE_  )  )


if __name__ == "__main__":
	main()


