s = input() a = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' a_list = list(a) s_list= list(s) encryption = [] for i in range(len(s_list)): for j in range(len(a_list)): if s_list[i] == a_list[j]: encryption.append(a_list[j - (i + 1)]) print(encryption)