import os S = input() s = "treeone" g = "forest" print(g.join(S.split(s)))