#include<iostream>
#include<string>
#include<vector>
using namespace std;
#define rep(i,a) for(int i = 0 ; i < a; i ++)
int main(void){
  string s;
  int n = 0;
  
  while(cin>>s){
    if(n)cout<<" ";
    n++;
    string word[] = {"apple","peach"};
    if(s[0] == 'a' && s[1] == 'p' && s[2] == 'p' && s[3] == 'l' && s[4] == 'e')
      rep(i,5)s[i] = word[1][i];
    else if(s[0] == 'p' && s[1] == 'e' && s[2] == 'a' && s[3] == 'c' && s[4] == 'h')
      rep(i,5)s[i] = word[0][i];
    cout<<s;
  }
  cout<<endl;
}