s = input()
t = s.replace("treeone", "forest")
print(t)