S = raw_input() print(S.replace('treeone','forest'))