#include <stdio.h>
#include<math.h>
#include <algorithm>
using namespace std;


int main(){

   char buf[1001],length = 0;
   fgets(buf,1001,stdin);

   for(int i=0;buf[i] != '\0';i++){
	   if(buf[i] < 97 || buf[i] > 122){
		   if(length == 5 && buf[i-1] == 'e' && buf[i-2] == 'l' && buf[i-3] == 'p' &&
				   buf[i-4] == 'p' && buf[i-5] == 'a'){
			   buf[i-5] = 'p';
			   buf[i-4] = 'e';
			   buf[i-3] = 'a';
			   buf[i-2] = 'c';
			   buf[i-1] = 'h';
		   }else if(length == 5 && buf[i-1] == 'h' && buf[i-2] == 'c' && buf[i-3] == 'a' &&
				   buf[i-4] == 'e' && buf[i-5] == 'p'){
			   buf[i-5] = 'a';
			   buf[i-4] = 'p';
			   buf[i-3] = 'p';
			   buf[i-2] = 'l';
			   buf[i-1] = 'e';
		   }
		   length = 0;
	   }else if(buf[i+1] == '\n' || buf[i+1] == '\0'){
		   length++;
		   if(length == 5 && buf[i] == 'e' && buf[i-1] == 'l' && buf[i-2] == 'p' &&
				   buf[i-3] == 'p' && buf[i-4] == 'a'){
			   buf[i-5] = 'p';
			   buf[i-4] = 'e';
			   buf[i-3] = 'a';
			   buf[i-2] = 'c';
			   buf[i-1] = 'h';
		   }else if(length == 5 && buf[i] == 'h' && buf[i-1] == 'c' && buf[i-2] == 'a' &&
				   buf[i-3] == 'e' && buf[i-4] == 'p'){
			   buf[i-5] = 'a';
			   buf[i-4] = 'p';
			   buf[i-3] = 'p';
			   buf[i-2] = 'l';
			   buf[i-1] = 'e';
		   }
		   length = 0;

	   }else{
		   if(buf[i] >= 97 && buf[i] <= 122){
			   length++;
		   }
	   }
   }

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

    return 0;
}