str_list = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ") def main(): S = input() i = 1 for s in list(S): print(get_str(i, s), end='') i += 1 print() def get_str(index, value): value_index = str_list.index(value) result_index = value_index - index return str_list[get_positive_index(result_index)] def get_positive_index(index): if index >= 0: return index index += 26 return get_positive_index(index) if __name__ == '__main__': main()