S = str(input())
print(S.replace('treeone','forest'))