import sequtils, strutils, algorithm, math echo (readLine(stdin)).replace("treeone", "forest")