#include<iostream>
#include<string.h>
#include<stdio.h>

int main(){
	char s[100];

	int count = 0;

	gets(s);

	int diff;
	for (int j = 0; j < strlen(s); j++){
		diff = s[j] - 't';
		//printf("diff:%d\n", diff);
		if ((s[j+1] - diff)== 'h'){
			//printf("%c\n", s[j+1] - diff);
			if ((s[j+2] - diff) == 'e'){
				//printf("%c\n", s[j + 2] - diff);
				if (s[j+3] == ' '){
					break;
				}
			}
			else if ((s[j + 2] - diff) == 'a'){
				//printf("%c\n", s[j + 2] - diff);
				if ((s[j + 3] - diff) == 't'){
					//printf("%c\n", s[j + 3] - diff);
					if (s[j + 4] == ' '){
						break;
					}
				}
			}
			else if ((s[j + 2] - diff) == 'i'){
				//printf("%c\n", s[j + 2] - diff);
				if ((s[j + 3] - diff) == 's'){
					//printf("%c\n", s[j + 3] - diff);
					if (s[j + 4] == ' '){
						break;
					}
				}
			}

		}
	}

	//printf("diff:%d\n",diff);
	for (int i = 0;i < strlen(s);i++){
		if (s[i] == ' ' || s[i] == '.')continue;
		s[i] -= diff;
	}

	printf("%s\n",s);

	return 0;
}