#include<iostream>
using namespace std;
int main(){
  char bun[1111];
  int i=0;
  while(1){
    cin>>bun[i];
    if(bun[i]==' ') bun[i]='*';
    if(bun[i]=='.') break;
    i++;
  }
  i=0;
  while(1){
    if(bun[i]=='.') break;
    if(bun[i]=='a' && bun[i+1]=='p' && bun[i+2]=='p' && bun[i+3]=='l' && bun[i+4]=='e'){
      bun[i]='p';
      bun[i+1]='e';
      bun[i+2]='a';
      bun[i+3]='c';
      bun[i+4]='h';
    }
    i++;
  }
  i=0;
  while(1){
    if(bun[i]=='*'){
      cout<<' ';
    }else{
      cout<<bun[i];
    }
    if(bun[i]=='.') break;
    i++;
  }
  cout<<endl;
}