using System; using System.Linq; class Program { static void Main(string[] args) { // No.18 うーさー暗号 string s = Console.ReadLine(); if (s.Length >= 1023) return; int shift = -1; int ascii = 0; foreach (var item in s.Select((val, idx) => new { val, idx })) { ascii = (int)item.val + (shift * (item.idx + 1)); do { if (ascii <= 64) ascii += 26; if (ascii >= 91) ascii -= 26; } while (ascii <= 64 || 91 <= ascii); Console.Write((char)ascii); } Console.WriteLine(); } }