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

int main(){

  char in[1000];
  int i;
  while(scanf("%s",in) != EOF){
    for(i = 0; i < strlen(in); i++){
      if(in[i] >= 'A' && in[i] <= 'Z') in[i]+=('a'-'A');
    }

    if(strstr(in,"apple") != '\0'){      
      for(i = 0; i < strlen(in); i++){
	if(in[i] == 'a' && in[i+1] == 'p' && in[i+2] == 'p' && in[i+3] == 'l' && in[i+4] == 'e'&&!(in[i+5] >= 'a' && in[i+5] <= 'z')){
	  in[i] = 'p';
	  in[i+1] = 'e';
	  in[i+2] = 'a';
	  in[i+3] = 'c';
	  in[i+4] = 'h';
	  break;
	}
      }
    }else if(strstr(in,"peach") != '\0'){
      for(i =0; i < strlen(in); i++){
	if(in[i] == 'p'&& in[i+1] == 'e' && in[i+2] == 'a' && in[i+3] == 'c' && in[i+4] == 'h' && !(in[i+5] >= 'a' && in[i+5] <= 'z')){
	  in[i] = 'a';
	  in[i+1] = 'p';
	  in[i+2] = 'p';
	  in[i+3] = 'l';
	  in[i+4] = 'e';
	  break;
	}
      }
    }
    printf("%s ",in);
  }
  printf("\n");
    return 0;
}