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