#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <sstream>

#define INPUT_FROM_FILE (0) 
#if INPUT_FROM_FILE
#include <fstream>
#endif

int main(){
	std::string buf;

	std::getline(std::cin, buf);
 
   for(int i=0;buf[i] != '\0';i++){
     if(i >= 4 && buf[i] == 'e' && buf[i-1] == 'l' && buf[i-2] == 'p' &&
               buf[i-3] == 'p' && buf[i-4] == 'a'){
           buf[i-4] = 'p';
           buf[i-3] = 'e';
           buf[i-2] = 'a';
           buf[i-1] = 'c';
           buf[i] = 'h';
       }else if(i >= 4  && buf[i] == 'h' && buf[i-1] == 'c' && buf[i-2] == 'a' &&
               buf[i-3] == 'e' && buf[i-4] == 'p'){
           buf[i-4] = 'a';
           buf[i-3] = 'p';
           buf[i-2] = 'p';
           buf[i-1] = 'l';
           buf[i] = 'e';
       }
   }
 
   printf("%s\n",buf.c_str());
 
    return 0;
}
