import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String S = scan.next(); String ans = S.replaceAll("treeone", "forest"); System.out.println(ans); scan.close(); } }