import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); String s = sc.next(); String before = "treeone"; String after = "forest"; System.out.println(s.replace(before,after)); } }