# 加密,
# 字母:先判断大小写。再判断是不是z或者Z,是的话,替换为A,a,其他ord值 +1 处理后输出chr
# 数字:判断是不是9,9的话替换为0,其他加1输出
def jiam(s):
re = ''
for i in s:
if str(i).islower():
if str(i) == 'z':
re += 'A'
else:
x = ord(str(i)) + 1
re += chr(x).upper()
elif str(i).isupper():
if str(i) == 'Z':
re += 'a'
else:
y = ord(str(i)) + 1
re += chr(y).lower()
else:
if str(i) == '9':
re += str(0)
else:
re += str(int(i) + 1)
return re
# 解密,
# 字母:先判断大小写。再判断是不是a或者A,是的话,替换为Z,z,其他ord值 -1 处理后输出chr
# 数字:判断是不是0,0的话替换为9,其他-1输出
def jiemi(s):
re = ''
for i in s:
if str(i).islower():
if str(i) == 'a':
re += 'Z'
else:
x = ord(str(i)) - 1
re += chr(x).upper()
elif str(i).isupper():
if str(i) == 'A':
re += 'z'
else:
y = ord(str(i)) - 1
re += chr(y).lower()
else:
if str(i) == '0':
re += str(9)
else:
re += str(int(i) - 1)
return re
str1 = input()
str2 = input()
print(jiam(str1))
print(jiemi(str2))