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