#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int r[s.length()];
  int l[s.length()];
  int rcount = 0;
  int lcount = 0;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'r') {
      r[rcount++] = i;
    } else
      l[lcount++] = i;
  }
  sort(r, r + rcount);
  sort(l, l + lcount);
  for (int i = 0; i < rcount; i++) {
    cout << r[i] + 1 << endl;
  }
  for (int i = lcount - 1; i >= 0; i--) {
    cout << l[i] + 1 << endl;
  }
  return 0;
}
