#include <bits/stdc++.h>
using namespace std;
static int speed_increase = []() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(NULL);
  return 0;
}();
int main() {
  string s;
  cin >> s;
  list<int> inlist;
  inlist.push_back(1);
  int stone = 2;
  auto itr = inlist.begin();
  if (stone <= (int)s.size())
    for (auto ch : s) {
      if (ch == 'l') {
        itr = inlist.insert(itr, stone);
      } else {
        ++itr;
        itr = inlist.insert(itr, stone);
      }
      ++stone;
      if (stone > (int)s.size()) break;
    }
  for (auto st : inlist) {
    cout << st << "\n";
  }
  return 0;
}
