while True:
    try:
        a = input()
        a = list(a) #需要加密的字符串
        b = input()
        b = list(b) #需要解密的字符串
        for i in range(len(a)):#加密过程
            if(a[i].isupper()): #如果字符是大写字母
                if(a[i] == 'Z'): #首先如果是Z的话变为a,若z的ascll+1的值是‘{’
                    a[i] = 'a'
                else:
                    a[i] = a[i].lower() #先变为小写
                    c = ord(a[i]) + 1 #ascll码+1
                    a[i] = chr(c) #转为字符
            elif(a[i].islower()): #小写同理
                if(a[i] == 'z'):
                    a[i] = 'A'
                else:
                    a[i] = a[i].upper()
                    c = ord(a[i]) + 1
                    a[i] = chr(c)
            elif(a[i].isdigit()): #若是数字则+1,9需要单独处理
                if(a[i] == '9'):
                    a[i] = '0'
                else:
                    a[i] = int(a[i]) + 1
                    a[i] = str(a[i])
            else: #若是其他字符则保持不变
                a[i] = a[i]
                
                
        for i in range(len(b)): #解密过程
            if(b[i].isupper()): #若为大写则先变为小写,再ascll减一,A要单独处理
                if(b[i] == 'A'):
                    b[i] = 'z'
                else:
                    b[i] = b[i].lower()
                    c = ord(b[i]) - 1
                    b[i] = chr(c)
            elif(b[i].islower()): #若是小写要先变为大写,再ascll减一,a要单独处理
                if(b[i] == 'a'):
                    b[i] = 'Z'
                else: 
                    b[i] = b[i].upper()
                    c = ord(b[i]) - 1
                    b[i] = chr(c)
            elif(b[i].isdigit()):#若是数字需要减一,0要单独处理
                if(b[i] == '0'):
                    b[i] = '9'
                else:
                    b[i] = int(b[i]) - 1
                    b[i] = str(b[i])
            else:
                b[i] = b[i]
        print(''.join(a)) #按要求输出
        print(''.join(b))
    except:
        break