def toAtBash(text):
    characters = list(text.upper())
    result = ""
    for character in characters:
        if character in code_dictionary:
            result += code_dictionary.get(character)
        else:
            result += character # Zachowanie znaków, które nie są literami
    return result

alphabet = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
reverse_alphabet = list(reversed(alphabet))
code_dictionary = dict(zip(alphabet, reverse_alphabet))
plainText= "Uwazamy nastepujace prawa za oczywiste"
print(plainText)
cipherText = toAtBash(plainText)
print(cipherText)
cipherText = toAtBash(cipherText)
print(cipherText)
