#coding:utf-8 def main(): S_list = input().split('treeone') join_S = 'forest'.join(S_list) print(join_S) if __name__ == '__main__': main()