#include<iostream>
#include<string>
using namespace std;

int main() {
	string sa;
	while (getline(cin, sa), sa != "END OF INPUT") {
		int a = sa.size();
		while (1) {
			for (int i = 0; i < a; i++) {
				if (sa[i] > 96 && sa[i] < 123) {
					sa[i] += 1;
				}
					if (sa[i] == 123){
						sa[i] -= 26;
					}				
			}
			size_t za=sa.find("this"||"that"||"the");
			if (za != string::npos) {
				break;
			}
		}
		cout << sa << endl;
	}
	return 0;
}