alpha = "abcdefghijklmnopqrstuvwxyz".upper() s = input() result = '' for i,v in enumerate(s): result+=alpha[(alpha.index(v)-(i+1))%26] print(result)