#include int main(void){ char S[100]; scanf("%s",S); for(int i=0;S[i]!='\0';i++){ if(S[i]=='t') if(S[i+1]=='r') if(S[i+2]=='e') if(S[i+3]=='e') if(S[i+4]=='o') if(S[i+5]=='n') if(S[i+6]=='e'){ S[i]='f';S[i+1]='o';S[i+2]='r';S[i+3]='e';S[i+4]='s';S[i+5]='t'; for(int j=6;S[i+j]!='\0';j++){ S[i+j]=S[i+j+1];}break;}} printf("%s\n",S); return 0; }