# -*- coding: utf-8 -*- s = input() s = s.replace("treeone","forest") print(s)