#include<cstdio>
#include<algorithm>
#include<string>
#include<cstring>

using namespace std;
int main(void)
{
	char moji[100000] = {0};
	scanf("%[^\n]",moji);
	int mojis = strlen(moji);
	for(int i = 0;i < mojis;i++)
	{
		if(moji[i] == ' ')
		{
			if(moji[i+1] == 'a' && moji[i+2] == 'p' && moji[i+3] == 'p')
			{
				if(moji[i+4] == 'l' && moji[i+5] == 'e')
				{	
					if(moji[i+6] < 'a' || moji[i+6] > 'z')
					{
						moji[i+1] = 'p';
						moji[i+2] = 'e';
						moji[i+3] = 'a';
						moji[i+4] = 'c';
						moji[i+5] = 'h';
					}
				}
			}
			else if(moji[i+1] == 'p' && moji[i+2] == 'e' && moji[i+3] == 'a')
			{
				if(moji[i+4] == 'c' && moji[i+5] == 'h')
				{
					if(moji[i+6] < 'a' || moji[i+6] >'z')
					{
						moji[i+1] = 'a';
						moji[i+2] = 'p';
						moji[i+3] = 'p';
						moji[i+4] = 'l';
						moji[i+5] = 'e';
					}
				}
			}
		}
	}

	printf("%s",moji);
	printf("\n");

	return 0;
}