using System; using System.Collections.Generic; using System.Linq; using System.Text; class yc2 { static void Main() { string str1 = Console.ReadLine(); for (int i = 0; i < str1.Length; i++) { Console.Write((char)(str1[i] - (i + 1) % 26 < 'A' ? str1[i] + 26 - (i + 1) % 26 : str1[i] - (i + 1) % 26)); //Console.WriteLine((int)'Z'); } } }