import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.nextLine(); StringBuilder sb = new StringBuilder(str); try { sb = sb.replace(sb.indexOf("treeone"), sb.indexOf("treeone") + 7, "forest"); } catch(StringIndexOutOfBoundsException e) { System.out.println(str); } System.out.println(sb.toString()); sc.close(); } }