using System;
class aoj
{
    static void Main()
    {
        string a = Console.ReadLine();
        char[] b = new char[a.Length];
        for(int i = 0; i < a.Length; i++)
        {
            int c = (int)a[i];
            c-= 3;
            if (c < 'A') c += 26;
            b[i] = (char)c;
        }
        string d = new string(b);
        Console.WriteLine(d);
    }
}