def f(t): return "forest" + t s = input().split("treeone") t = list(map(f, s[1:])) s = s[0] for x in t: s += x print(s)