s = input() len_ = len(s) if len_ <= 7: if s=="treeone": print("forest") print(s) else: for i in range(len_-7): s[i:i+7] == "treeone" print(s[:i-1]+"forest"+s[i+8:])