#Tyler Woodhull
#decode.py
#7/23/13

# Open file and read in number of cases.
fileIn = open("decode.in")
t = int(fileIn.readline())

# Go through each case.
for i in range(t):
    word = fileIn.readline().strip()

    # Build the password by undoing the subtraction (add 5)
    password = ""
    for char in word:
        password += chr(ord(char)+5)

    # Print it!
    print(password)

fileIn.close()
