using System;

namespace _0050
{
    class Program
    {
        static void Main(string[] args)
        {
            var modifyTexts = Console.ReadLine().Replace("apple", "apple_").Replace("peach", "apple").Replace("apple_", "peach");
            Console.WriteLine(modifyTexts);
        }
    }
}