def encrypt(s):
st=''
for item in s:
if item=='Z':
st+="a"
continue
if item=="z":
st+='A'
continue
if item=='9':
st+='0'
continue
tem=ord(item)
if 65<=tem and tem<90:
st+=chr(tem+33)
elif 97<=tem and tem<122:
st+=chr(tem-31)
elif 47<tem and tem<57:
st+=chr(tem+1)
else:
st+=item
return st
def decrypt(s):
st=''
for item in s:
if item=='a':
st+="Z"
continue
if item=="A":
st+='z'
continue
if item=='0':
st+='9'
continue
tem=ord(item)
if 65<tem and tem<=90:
st+=chr(tem+31)
elif 97<tem and tem<=122:
st+=chr(tem-33)
elif 48<tem and tem<=57:
st+=chr(tem-1)
else:
st+=item
return st
while True:
try:
str1=input()
str2=input()
print(encrypt(str1))
print(decrypt(str2))
pass
except:
break