#include <iostream>
#include <string>

using namespace std;

int main()
{
	string s;
	while(cin >> s)
	{
		if(s == "apple") cout << "peach" << " ";
		else if(s == "apple.") cout << "peach.";
		else cout << s << " ";
	}
	cout << endl;
	return 0;
}