#include<iostream>
#include<vector>
#include<cstring>

using namespace std;

const string APPLE = "apple";
const string PEACH = "peach";

string Tol(string in){
  for(int i = 0; i < in.length(); i++){
    if(in[i] >= 'A' && in[i] <= 'Z') in[i] += ('a'-'A');
  }
  return in;
} 
string check(string s){
  if(s.length() != 5) return s;
  if(s == "apple") return "peach";
  if(s == "peach") return "apple";
  /* string isw = Tol(s);
  if(isw == "apple"){
    for(int i = 0; i < 5; i++) s[i] += PEACH[i] - APPLE[i];
  }
  if(isw == "peach"){
    for(int i = 0; i < 5; i++) s[i] += APPLE[i] - PEACH[i];
    }*/
  return s;
}

int main(){
  string in;
  getline(cin,in);
  in += '\n';
  vector<string> V;
  string str = "";
  for(int i = 0; i < in.length(); i++){
    if(in[i] >= 'a' && in[i] <= 'z' || in[i] >= 'A' && in[i] <= 'Z')str += in[i];
    else{
      // if(in != ""){
	V.push_back(str);
	str = "";
	str += in[i];
	V.push_back(str);
	str = "";
	// }
    }
  }
  if(in != ""){
    V.push_back(str);
    str = "";
  }
  for(int i = 0; i < V.size(); i++) cout << check(V[i]);
  return 0;
}