S = list(input()) a = list('ABCDEFGHIJKLMNOPQRSTUVWXYZ') print(''.join([a[a.index(i)-(S.index(i) + 1)] for i in S]))