wn = [i for i in input()]
nw = [i for i in input()]
def func1(x):
for i in range(len(x)):
if x[i].islower():
if x[i] == 'z':
x[i] = 'A'
else:
x[i] = chr(ord(x[i].upper()) + 1)
elif x[i].isupper():
if x[i] == 'Z':
x[i] = 'a'
else:
x[i] = chr(ord(x[i].lower()) + 1)
elif x[i].isdigit():
x[i] = str(int(x[i]) + 1)
if x[i] == '10':
x[i] = '0'
print(''.join(x))
def func2(x):
for i in range(len(x)):
if x[i].islower():
if x[i] == 'a':
x[i] = 'Z'
else:
x[i] = chr(ord(x[i].upper()) - 1)
elif x[i].isupper():
if x[i] == 'A':
x[i] = 'z'
else:
x[i] = chr(ord(x[i].lower()) - 1)
elif x[i].isdigit():
x[i] = str(int(x[i]) - 1)
if x[i] == '-1':
x[i] = '9'
print(''.join(x))
func1(wn)
func2(nw)
nw = [i for i in input()]
def func1(x):
for i in range(len(x)):
if x[i].islower():
if x[i] == 'z':
x[i] = 'A'
else:
x[i] = chr(ord(x[i].upper()) + 1)
elif x[i].isupper():
if x[i] == 'Z':
x[i] = 'a'
else:
x[i] = chr(ord(x[i].lower()) + 1)
elif x[i].isdigit():
x[i] = str(int(x[i]) + 1)
if x[i] == '10':
x[i] = '0'
print(''.join(x))
def func2(x):
for i in range(len(x)):
if x[i].islower():
if x[i] == 'a':
x[i] = 'Z'
else:
x[i] = chr(ord(x[i].upper()) - 1)
elif x[i].isupper():
if x[i] == 'A':
x[i] = 'z'
else:
x[i] = chr(ord(x[i].lower()) - 1)
elif x[i].isdigit():
x[i] = str(int(x[i]) - 1)
if x[i] == '-1':
x[i] = '9'
print(''.join(x))
func1(wn)
func2(nw)