print(input().replace("tree","forest"))