import sys input=lambda: sys.stdin.readline().rstrip() print(input().replace("treeone","forest"))