S = input()[::-1] while "enoeert" in S : S = S.replace("enoeert","tserof") print(S[::-1])