# Arup Guha
# 12/14/2024
# Solution to Kattis Problem: DRM Messages

# Returns sum of letter values (A = 0, B = 1, ..., Z = 25)
def sumlet(s):
    res = 0
    for x in s:
        res += (ord(x)-ord('A'))
    return res

# Shifts s by key and returns the new string.
def shift(s, key):

    # Store answer here.
    res = ""

    # Shift each letter by key and add to t.
    for i in range(len(s)):
        res = res + chr((ord(s[i])-ord('A') + key)%26 +ord('A'))

    # Ta da!
    return res

# Get input
word = input().strip()
n = len(word)

# Split it into two.
left = word[0:n//2]
right = word[n//2:]

sLeft = sumlet(left)
left = shift(left, sLeft)
sRight = sumlet(right)
right = shift(right, sRight)

# Just solving it outright.
for i in range(len(left)):
    val = (ord(left[i])-ord('A')+ord(right[i])-ord('A'))%26
    print(chr(val+ord('A')), end="")
print()
