#include<iostream>
#include<string>
using namespace std;
string replace(string s, string a, string b){
	string r;
		if(s.find(a) != s.npos){
			r += s.substr(0,s.find(a)) + b;
			s = s.substr(r.size(), s.size());
	}
	return r+s;
}

int main(){
	string s;
	while(getline(cin, s)){
	if(s.size() > 80) return 0;
		s = replace(s,"apple", "PEACH"); s = replace(s,"peach", "APPLE");
		s = replace(s,"APPLE","apple"); s = replace(s,"PEACH","peach");
		cout << s << endl;
	}
	return 0;
}