import java.util.Scanner; public class Main_725_treesForests { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String value1 = scan.next(); scan.close(); String result = replaceTreeoneToForest(value1); System.out.println(result); } public static String replaceTreeoneToForest(String value1) { String replacedString = ""; if (value1.contains("treeone")) { replacedString = value1.replaceAll("treeone", "forest"); } return replacedString; } }