# 入力された値を文字列で受け取る input = gets.chomp puts input.gsub(/treeone/, 'forest')