using System.Collections.Generic; using System; namespace yukicoder { class Program { static void Main(string[] args) { var X = Console.ReadLine(); int i, c, e, d; List list = new List() { "A" , "B", "C", "D", "E", "F" , "G", "H", "I", "J", "K", "L" , "M", "N", "O", "P", "Q", "R", "S" , "T", "U", "V", "W", "X", "Y", "Z"}; var z = X.Split(" "); string[] str = new string[X.Length]; //文字分割 for (int j = 0; j < X.Length; j++) { str[j] = z[0].Substring(j , 1); } for(i = 1; i <= X.Length; i++) { //int e = 0; //int d = 0; c = list.IndexOf(str[i - 1]) + 1;//アルファベットの要素番号取得 d = c - i;//アルファベットの要素番号から文字列iを引く e = (d - 1) % 26;//要素の中身がほしいアルファベット if(e < 0) { e = e * -1; int ans = (26 - e) % 26; Console.Write(list[ans]); } else { Console.Write(list[e]); } } } } }