def encrypt(s):
    r = []
    for i in s:
        if i == 'z':
            r.append('A')
        elif i == 'Z':
            r.append('a')
        elif i == '9':
            r.append('0')
        elif i.islower():
            ii = chr(ord(i) + 1).upper()
            r.append(ii)
        elif i.isupper():
            ii = chr(ord(i) + 1).lower()
            r.append(ii)
        else:
            r.append(str(int(i) + 1))
    return "".join(r)

def decrypt(s):
    r = []
    for i in s:
        if i == 'a':
            r.append('Z')
        elif i == 'A':
            r.append('z')
        elif i == '0':
            r.append('9')
        elif i.islower():
            ii = chr(ord(i) - 1).upper()
            r.append(ii)
        elif i.isupper():
            ii = chr(ord(i) - 1).lower()
            r.append(ii)
        else:
            r.append(str(int(i) - 1))
    return "".join(r)

print(encrypt(input()))
print(decrypt(input()))