#include <iostream>
#include <cstdio>
#include <cstring>
#include <cctype>
#include <string>
#include <algorithm>
#define CHAR_NUM 1001
#define NUM 5
using namespace std;

int main(void) {
    char str[30] = {0};
    char ans[CHAR_NUM];
    
    while(scanf("%s", str) != EOF) {
        if(!(strncmp(str, "apple", 5))) {
            str[0] = 'p';
            str[1] = 'e';
            str[2] = 'a';
            str[3] = 'c';
            str[4] = 'h';
        } else if(!(strncmp(str, "peach", 5))) {
            str[0] = 'a';
            str[1] = 'p';
            str[2] = 'p';
            str[3] = 'l';
            str[4] = 'e';
        }
        strcat(ans, str);
        int len = (int)strlen(ans);
        ans[len] = ' ';
    }
    cout << ans << endl;
    
    return(0);
}