#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<ll> VL;
typedef vector<VL> VVL;
typedef pair<int, int> PII;

#define FOR(i, a, n) for (ll i = (ll)a; i < (ll)n; ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(x) x.begin(), x.end()
#define MP make_pair
#define PB push_back
#define MOD 1000000007
#define INF (1LL<<30)
#define LLINF (1LL<<60)
#define PI 3.14159265359
#define EPS 1e-12
#define int ll

signed main(void)
{
  string s, t = "";
  getline(cin, s);

  REP(i, s.size()) {
    if((s[i] < 'a' || s[i] > 'z') && (s[i] < 'A' || s[i] > 'Z')) {
      //cout << t << endl;
      if(t == "apple") {
        s[i-1] = 'h';
        s[i-2] = 'c';
        s[i-3] = 'a';
        s[i-4] = 'e';
        s[i-5] = 'p';
      } else if(t == "peach") {
        s[i-1] = 'e';
        s[i-2] = 'l';
        s[i-3] = 'p';
        s[i-4] = 'p';
        s[i-5] = 'a';
      }
      t = "";
    } else {
      t += s[i];
    }
  }
  if(t == "apple") {
    s[s.size()-1] = 'h';
    s[s.size()-2] = 'c';
    s[s.size()-3] = 'a';
    s[s.size()-4] = 'e';
    s[s.size()-5] = 'p';
  } else if(t == "peach") {
    s[s.size()-1] = 'e';
    s[s.size()-2] = 'l';
    s[s.size()-3] = 'p';
    s[s.size()-4] = 'p';
    s[s.size()-5] = 'a';
  }
  cout << s << endl;
  return 0;
}