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

string change(string& s, const string a[3], const string p[3]){
	for(int i = 0; i < 6; i++){
		if(s == a[i]){
			s = p[i];
		}else if(s == p[i]){
			s = a[i];
		}
	}
	return s;
}


int main(){
	const string a[] = {
		"apple", 
		"Apple",
		"apple.",
		"Apple.",
		"apple,",
		"Apple,"
	};
	const string p[] = {
		"peach",
		"Peach",
		"peach.",
		"Peach.",
		"peach,",
		"Peach,"
	};
	vector<string> vs;
	string s;
	while(cin >> s) vs.push_back(s);
	for(vector<string>::iterator iter = vs.begin();
		iter != vs.end(); iter++)
	{
		if(iter != vs.end() - 1){
			cout << change(*iter, a, p) << " ";
		}else{
			cout << change(*iter, a, p) << endl;
		}
	}
	return 0;
}