#include<iostream>
#include<string>

using namespace std;

int main(){
	string in;
	getline(cin,in);
	for(int i=0;i<in.length();i++){
		if(in=="apple")in="peach";
		else if(in=="apple.")in="peach.";
		else if(in=="peach")in="apple";
		else if(in=="peach.")in="apple.";
	}
	
	cout<<in<<endl;
	
}