S = list(input()) alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" for i in range(len(S)): for j in range(25): if S[i] == alphabet[j]: S[i] = alphabet[j-i-1] print(S[i],end = "") break