def addkey(s1):
a = []
for i in s1:
if i.isalpha():
if i.islower():
if i =="z":
a.append(chr(ord(i)-25).upper())
else:
a.append(chr(ord(i)+1).upper())
if i.isupper():
if i == "Z":
a.append(chr(ord(i)-25).lower())
else:
a.append(chr(ord(i)+1).lower())
if i.isdigit():
if i == "9":
a.append("0")
else:
a.append(str(int(i)+1))
print("".join(a))
def delkey(s2):
a = []
for i in s2:
if i.isalpha():
if i.islower():
if i =="a":
a.append(chr(ord(i)+25).upper())
else:
a.append(chr(ord(i)-1).upper())
if i.isupper():
if i == "A":
a.append(chr(ord(i)+25).lower())
else:
a.append(chr(ord(i)-1).lower())
if i.isdigit():
if i == "0":
a.append("9")
else:
a.append(str(int(i)-1))
print("".join(a))
if __name__ == "__main__":
while True:
try:
s1 = input()
addkey(s1)
s2 = input()
delkey(s2)
except:
break