def mainProc(s): print(s.replace('treeone','forest')) if __name__ == '__main__': s = input() mainProc(s)