a = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ") m = input() length = int(len(m)) m = list(m) answer = "" for i in range(length): for j in range(26): if m[i] == a[j]: answer += a[j - i -1] print(answer)