import java.util.ArrayDeque; import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { new Main().run(); } void run() { Scanner sc = new Scanner(System.in); String S = sc.next().replaceAll("treeone", "forest"); System.out.println(S); } void tr(Object... objects) { System.out.println(Arrays.deepToString(objects)); } }