s = input()
t = "`1234567890-=QWERTYUIOP[]\ASDFGHJKL;'ZXCVBNM,./"
map = {}
for i in range(1, len(t)): map[t[i]] = t[i - 1]
for c in s:
if c == ' ':
print(c, end='')
else:
print(map[c], end='')

s = input()
t = "`1234567890-=QWERTYUIOP[]\ASDFGHJKL;'ZXCVBNM,./"
map = {}
for i in range(1, len(t)): map[t[i]] = t[i - 1]
for c in s:
if c == ' ':
print(c, end='')
else:
print(map[c], end='')