using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string enc = "tett rett nete tsvn wnyh este brwn yeez";
var table = Enumerable.Range('d', 'z' - 'd' + 1)
.Select(i => (char)i)
.Zip(Enumerable.Range('a', 'w' - 'a' + 1).Select(i => (char)i),
(f, s) => new KeyValuePair<char, char>(f, s)
)
.Concat(Enumerable.Range('a', 'c' - 'a' + 1)
.Select(i => (char)i)
.Zip(Enumerable.Range('x', 'z' - 'x' + 1).Select(i => (char)i),
(f, s) => new KeyValuePair<char, char>(f, s)
)
);
foreach (var item in table)
{
enc = enc.Replace(item.Key, item.Value);
}
Console.WriteLine(enc);
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKdXNpbmcgU3lzdGVtLkxpbnE7CgpuYW1lc3BhY2UgQ29uc29sZUFwcGxpY2F0aW9uMQp7CiAgICBjbGFzcyBQcm9ncmFtCiAgICB7CiAgICAgICAgc3RhdGljIHZvaWQgTWFpbihzdHJpbmdbXSBhcmdzKQogICAgICAgIHsKICAgICAgICAgICAgc3RyaW5nIGVuYyA9ICJ0ZXR0IHJldHQgbmV0ZSB0c3ZuIHdueWggZXN0ZSBicnduIHllZXoiOwogICAgICAgICAgICB2YXIgdGFibGUgPSBFbnVtZXJhYmxlLlJhbmdlKCdkJywgJ3onIC0gJ2QnICsgMSkKICAgICAgICAgICAgICAgIC5TZWxlY3QoaSA9PiAoY2hhcilpKQogICAgICAgICAgICAgICAgLlppcChFbnVtZXJhYmxlLlJhbmdlKCdhJywgJ3cnIC0gJ2EnICsgMSkuU2VsZWN0KGkgPT4gKGNoYXIpaSksCiAgICAgICAgICAgICAgICAgICAgKGYsIHMpID0+IG5ldyBLZXlWYWx1ZVBhaXI8Y2hhciwgY2hhcj4oZiwgcykKICAgICAgICAgICAgICAgICkKICAgICAgICAgICAgICAgIC5Db25jYXQoRW51bWVyYWJsZS5SYW5nZSgnYScsICdjJyAtICdhJyArIDEpCiAgICAgICAgICAgICAgICAgICAgLlNlbGVjdChpID0+IChjaGFyKWkpCiAgICAgICAgICAgICAgICAgICAgLlppcChFbnVtZXJhYmxlLlJhbmdlKCd4JywgJ3onIC0gJ3gnICsgMSkuU2VsZWN0KGkgPT4gKGNoYXIpaSksCiAgICAgICAgICAgICAgICAgICAgICAgIChmLCBzKSA9PiBuZXcgS2V5VmFsdWVQYWlyPGNoYXIsIGNoYXI+KGYsIHMpCiAgICAgICAgICAgICAgICAgICAgKQogICAgICAgICAgICAgICAgKTsKICAgICAgICAgICAgZm9yZWFjaCAodmFyIGl0ZW0gaW4gdGFibGUpCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgIGVuYyA9IGVuYy5SZXBsYWNlKGl0ZW0uS2V5LCBpdGVtLlZhbHVlKTsKICAgICAgICAgICAgfQogICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZShlbmMpOwogICAgICAgIH0KICAgIH0KfQo=