#include <iostream>
#include <cstring>
using namespace std;

int main(){
	string str;
	//string app = "apple", pea = "peach";
	bool first, piriod;
	unsigned int loc;
	
	first = true;
	while(cin >> str){
		if(!first) cout << " ";
		first = false;
		
		if(str[str.length() - 1] == '.') piriod = true;
		else piriod = false;
		
		loc = str.find("apple", 0);
		if(loc != string::npos){
			cout << "peach";
		}
		else{
			loc = str.find("peach", 0);
			if(loc != string::npos){
				cout << "apple";
			}
			else{
				cout << str;
				piriod = false;
			}
		}
		
		if(piriod) cout << ".";
		/*for(int i = 0; i < 5; i++){
			if(app[i] != str[i]) break;
			
			if(i + 1 == 5 && (str[5] == 0 || str[5] == '.')){
				printf("peach");
				if(str[5] == '.') printf(".");
				output = true;
			}
		}
		if(!output){
			for(int i = 0; i < 5; i++){
				if(pea[i] != str[i]) break;
				
				if(i + 1 == 5 && (str[5] == 0 || str[5] == '.')){
					printf("apple");
					if(str[5] == '.') printf(".");
					output = true;
				}
			}
		}
		if(!output){
			printf("%s", str);
		}*/
	}
	cout << endl;
	
	return 0;
}