stdout.WriteLine(stdin.ReadLine().Replace("treeone","forest"))