#include <bits/stdc++.h>
using namespace std;
vector<pair<int, int> > a;
int main() {
  string s;
  cin >> s;
  int l = 1, r = s.size();
  for (int i = 0; i < s.size(); i++) {
    if (s.at(i) == 'l')
      a.push_back(make_pair(r--, i + 1));
    else
      a.push_back(make_pair(l++, i + 1));
  }
  sort(a.begin(), a.end());
  for (int i = 0; i < a.size(); i++) printf("%d\n", a.at(i).second);
  return 0;
}
