#include <bits/stdc++.h>
using namespace std;
char s[1000006];
vector<int> v, vv;
int main(int argc, const char* argv[]) {
  gets(s);
  for (int i = 0; s[i]; ++i)
    if (s[i] == 'l')
      v.push_back(i + 1);
    else
      vv.push_back(i + 1);
  for (int i = 0; i < (int)vv.size(); ++i) printf("%d\n", vv[i]);
  for (int i = (int)v.size() - 1; i >= 0; --i) printf("%d\n", v[i]);
  return 0;
}
