#include <bits/stdc++.h>

using namespace std;

int main()
{
    char line[100];
    int dist,a,b,h,e,i,s,t,aa;
    while(gets(line)){
        int l=strlen(line);
        //printf("length %d\n",l);
        char *token;
        token=strtok(line," ");
        while(token!=NULL) {//cout<<token<<" ";
            int tl=strlen(token);
            //printf("tl %d\n",tl);
            if(tl==3 || tl==4){
                if(tl==3){
                    a=abs(token[0]-'t');

                    h=token[1]-'a'-a;
                    h+=26;
                    h=h%26;

                    e=token[2]-'a'-a;
                    e+=26;
                    e=e%26;
                    if(h+'a'=='h' && e+'a'=='e'){

                        dist = a;
                        break;
                    }
                }
                if(tl==4){
                    a=abs(token[0]-'t');
                    //printf("a %d\n",a);

                    h=token[1]-'a'-a;
                    h+=26;
                    h=h%26;

                    i=token[2]-'a'-a;
                    i+=26;
                    i=i%26;

                    aa=token[2]-'a' -a;
                    aa+=26;
                    aa=aa%26;

                    s=token[3]-'a'-a;
                    s+=26;
                    s=s%26;

                    t=token[3]-'a' - a;
                    a += 26;
                    a = a%26;

                    if(h+'a'=='h' && (i+'a'=='i' ||aa+'a'=='a') && (s+'a'=='s' || t+'a'=='t')){

                        dist = a;
                        break;
                    }
                }
            }
            token=strtok(NULL," ");
            }

        //printf("length %d\n",dist);
            for(int i=0;i<l;i++){
            if(line[i]>='a' && line[i]<='z'){
                a=line[i]-'a';
                a=(a-dist);
                a+=26;
                a=a%26;
                line[i]='a'+a;
                printf("%c",a+'a');
            }
            else
                printf("%c",line[i]);
        }
        printf("\n");
    }

    return 0;
}