# coding=utf8
d_liscod = {} #dicionário gigante omitido
import getpass
import re
d_texdr = input('Insira o texto: ')
print()
d_texdecr = ''
d_de_crcod = [{v: k for k, v in i.items()} for i in d_liscod]
d_lisel = re.split(r'(\S+)', d_texdr) #cria lista com cada elemento tipográfico de d_texdr
if d_lisel[0] == ('') or d_lisel[0] == (' ') or d_lisel[0] == (' '):
del d_lisel[0]
if d_lisel[-1] == ('') or d_lisel[0] == (' ') or d_lisel[0] == (' '):
del d_lisel[-1]
for i in d_lisel:
for u in i:
try:
if u in d_de_crcod[d_lisel.index(i)]:
d_talt += d_de_crcod[d_lisel.index(i)][u]
except:
pass
try:
if u not in d_de_crcod[d_lisel.index(i)]:
d_talt += u
except:
pass
print('O texto alterado é:', d_talt)
print()
input()# your code goes here
IyBjb2Rpbmc9dXRmOApkX2xpc2NvZCA9IHt9ICNkaWNpb27DoXJpbyBnaWdhbnRlIG9taXRpZG8KaW1wb3J0IGdldHBhc3MKaW1wb3J0IHJlCmRfdGV4ZHIgPSBpbnB1dCgnSW5zaXJhIG8gdGV4dG86ICcpCnByaW50KCkKZF90ZXhkZWNyID0gJycKZF9kZV9jcmNvZCA9IFt7djogayBmb3IgaywgdiBpbiBpLml0ZW1zKCl9IGZvciBpIGluIGRfbGlzY29kXQpkX2xpc2VsID0gcmUuc3BsaXQocicoXFMrKScsIGRfdGV4ZHIpICNjcmlhIGxpc3RhIGNvbSBjYWRhIGVsZW1lbnRvIHRpcG9ncsOhZmljbyBkZSBkX3RleGRyCmlmIGRfbGlzZWxbMF0gPT0gKCcnKSBvciBkX2xpc2VsWzBdID09ICgnICcpIG9yIGRfbGlzZWxbMF0gPT0gKCcgICcpOgoJZGVsIGRfbGlzZWxbMF0KaWYgZF9saXNlbFstMV0gPT0gKCcnKSBvciBkX2xpc2VsWzBdID09ICgnICcpIG9yIGRfbGlzZWxbMF0gPT0gKCcgICcpOgoJZGVsIGRfbGlzZWxbLTFdCmZvciBpIGluIGRfbGlzZWw6Cglmb3IgdSBpbiBpOgoJCXRyeToKCQkJaWYgdSBpbiBkX2RlX2NyY29kW2RfbGlzZWwuaW5kZXgoaSldOgoJCQkJZF90YWx0ICs9IGRfZGVfY3Jjb2RbZF9saXNlbC5pbmRleChpKV1bdV0KCQlleGNlcHQ6CgkJCXBhc3MKCQl0cnk6CgkJCWlmIHUgbm90IGluIGRfZGVfY3Jjb2RbZF9saXNlbC5pbmRleChpKV06CgkJCQkJCWRfdGFsdCArPSB1CgkJZXhjZXB0OgoJCQlwYXNzCnByaW50KCdPIHRleHRvIGFsdGVyYWRvIMOpOicsIGRfdGFsdCkKcHJpbnQoKQppbnB1dCgpIyB5b3VyIGNvZGUgZ29lcyBoZXJl