S = input() t = '' i = 0 n = len(S) while i < n: if S[i:min(n, i + 7)] == 'treeone': t += 'forest' i += 7 else: t += S[i] i += 1 print(t)