big = [chr(i) for i in range(65,91)] #大写字母列表
small =  [chr(i) for i in range(97,123)] #小写字母列表
num = [chr(i) for i in range(48,58)] #数字列表

def change(str,f):
    """f为替换的步长,正推正号,反推负号"""
    new = []
    for i in str:
        if i in big:
            index = big.index(i) + f #获取并变换索引
            index = index % 26 if index > 25 or index < -26 else index  #判断索引范围
            new.append(small[index])
        elif i in small:
            index = small.index(i) + f
            index = index % 26 if index > 25 or index < -26 else index
            new.append(big[index])
        elif i in num:
            index = num.index(i) + f
            index = index % 10 if index > 9 or index < -10 else index
            new.append(num[index])
        else:
            new.append(i)
    return ''.join(new)

while True:
    try:
        a = input()
        b = input()
    except:
        break
    else:
        a = change(a,1)
        b = change(b,-1)

        print(a)
        print(b)