using System; class Program { public void Solve() { Console.WriteLine(Console.ReadLine().Replace("treeone", "forest")); } static void Main() { var solver = new Program(); solver.Solve(); } }