using System; using System.Linq; class Program { static void Main(string[] args) { string s = Console.ReadLine(); char[] chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".ToCharArray(); string[] arr = chars.Select(a => a.ToString()).ToArray(); string ans = ""; for (int i = 1; i <= s.Length; i++) { int a = Array.IndexOf(arr, s[i - 1].ToString()); int b = a - i; if (b < 0) { b = b + 26; } ans += arr[b]; } Console.WriteLine(ans); Console.Read(); } }