def check(a,b):
L1 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
L2 = "BCDEFGHIJKLMNOPQRSTUVWXYZAbcdefghijklmnopqrstuvwxyza1234567890"
result = ""
if b == 1:
for i in a:
result += L2[L1.index(i)]
elif b == -1:
for i in a:
result += L1[L2.index(i)]
return result
while True:
try:
print(check(input(),1))
print(check(input(), -1))
except:
break
# while True:
# try:
# s1=input()
# s2=input()
# l1=[]
# l2=[]
# for i in s1:
# if i == 'z':
# l1.append('A')
# elif i == 'Z':
# l1.append('a')
# elif i.isupper() and i != 'Z':
# l1.append(chr((ord(i.lower())+1)))
# elif i.islower() and i != 'z':
# l1.append(chr((ord(i.upper())+1)))
# elif i in '0 1 2 3 4 5 6 7 8 9' and i != '9':
# l1.append(str(int(i)+1))
# elif i == '9':
# l1.append('0')
# else:
# l1.append(i)
# for j in s2:
# if j == 'a':
# l2.append('Z')
# elif j == 'A':
# l2.append('z')
# elif j.isupper() and j != 'A':
# l2.append(chr((ord(j)-1)).lower())
# elif j.islower() and j != 'a':
# l2.append(chr((ord(j)-1)).upper())
# elif j in '0 1 2 3 4 5 6 7 8 9' and j != '0':
# l2.append(str(int(j)-1))
# elif j == '0':
# l2.append('9')
# else:
# l2.append(j)
# print(''.join(l1))
# print(''.join(l2))
# except:
# break