#include <iostream>
#include <string>
#include <cstdio>
using namespace std;

int main(){
  char a,b,c,d,e;
  string s;
  while(scanf("%c",&a)!=EOF){
    if(a=='a'){
      scanf("%c%c%c%c",&b,&c,&d,&e);
      if(b=='p'&&c=='p'&&d=='l'&&e=='e'){
	cout<<"peach";
      }else cout<<a<<b<<c<<d<<e;
    }else if(a=='p'){
      scanf("%c%c%c%c",&b,&c,&d,&e);
      if(b=='e'&&c=='a'&&d=='c'&&e=='h'){
	cout<<"apple";
      }else cout<<a<<b<<c<<d<<e;
    }else cout<<a;
  }
  
  return 0;
}