#include <bits/stdc++.h>
using namespace std;
int n, a, b, c, x, y, l, r, k, sum, ans, keep, cnt, pos;
char ch;
bool check = false;
char S[1000009];
int main() {
  vector<int> l, r;
  cin >> S;
  keep = strlen(S);
  for (int i = 0; i < keep; i++) {
    if (S[i] == 'l')
      l.push_back(i + 1);
    else
      r.push_back(i + 1);
  }
  keep = r.size();
  for (int i = 0; i < keep; i++) printf("%d\n", r[i]);
  reverse(l.begin(), l.end());
  keep = l.size();
  for (int i = 0; i < keep; i++) printf("%d\n", l[i]);
  return 0;
}
