#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> l, r;
  string s;
  cin >> s;
  int i = 1;
  for (const char& c : s) {
    if (c == 'l') {
      l.push_back(i);
    } else {
      r.push_back(i);
    }
    i++;
  }
  for (int n : r) {
    printf("%d\n", n);
  }
  for (i = l.size() - 1; i >= 0; i--) {
    printf("%d\n", l[i]);
  }
  return 0;
}
