line = input()
ans = []
for ch in line:
    if ch.isupper():
        ch = chr(ord('a') + ((ord(ch) - ord('A') + 1) % 26))
    elif ch.islower():
        ch = chr(ord('A') + ((ord(ch) - ord('a') + 1) % 26))
    elif ch.isdigit():
        ch = chr(ord('0') + ((ord(ch) - ord('0') + 1) % 10))
    ans.append(ch)
print("".join(ans))

ans = []
line = input()
for ch in line:
    if ch.isupper():
        ch = chr(ord('a') + ((ord(ch) - ord('A') + 25) % 26))
    elif ch.islower():
        ch = chr(ord('A') + ((ord(ch) - ord('a') + 25) % 26))
    elif ch.isdigit():
        ch = chr(ord('0') + ((ord(ch) - ord('0') + 9) % 10))
    ans.append(ch)
print("".join(ans))