str1=str(input().split())
str2=str(input().split())
# 1.加密处理
str11=''
for i in str1:
# (1)英文字母加1(a~y,A~Y)
if (i>='a' and i<='y') or (i>='A' and i <='Y'):
temp=chr(ord(i)+1)
str11=str11+temp
# (2)小写z直接换为a
if i=='z':
str11=str11+'a'
# (3)大写Z直接换为A
if i=='Z':
str11=str11+'A'
# (4)数字加1(0~8)
if i>='0' and i<='8':
temp=int(i)+1
str11=str11+str(temp)
# (5)数字9直接换位数字0
if i=='9':
str11=str11+'0'
str111=''
for i in str11:
# (1)小写字母转为大写
if i>='a' and i<='z':
temp=i.upper()
str111=str111+temp
# (2)大写字母转为小写
if i>='A' and i<='Z':
temp=i.lower()
str111=str111+temp
# (3)数字不变
if i>='0' and i<='9':
str111=str111+i
print(str111)
# 2.解密处理
str22=''
for i in str2:
# (1)英文字母减1(B~Z,b~z)
if (i>='B' and i<='Z') or (i>='b' and i<='z'):
temp=chr(ord(i)-1)
str22=str22+temp
# (2)大写A直接转为Z
if i=='A':
str22=str22+'Z'
# (3)小写a直接转为z
if i=='a':
str22=str22+'z'
# (4)数字减1(1~9)
if i>='1' and i<='9':
temp=int(i)-1
str22=str22+str(temp)
# (5)数字0直接转为数字9
if i=='0':
str22=str22+'9'
str222=''
for i in str22:
# (1)小写字母转为大写
if i>='a' and i<='z':
temp=i.upper()
str222=str222+temp
# (2)大学字母转为小写
if i>='A' and i<='Z':
temp=i.lower()
str222=str222+temp
# (3)数字不变
if i>='0' and i<='9':
str222=str222+i
print(str222)