#include <bits/stdc++.h>
using namespace std;
bool sortbysec(const pair<double, int> &a, const pair<double, int> &b) {
  return a.first < b.first;
}
int main(void) {
  string s;
  cin >> s;
  vector<pair<double, int> > v;
  vector<int> fir, sec;
  double l = 0, r = 1;
  int rock = 1;
  for (long long int i = 0; i < s.length(); i++) {
    char ch = s[i];
    if (ch == 'l') {
      r = (l + r) / 2;
      fir.push_back(rock++);
    } else {
      l = (l + r) / 2;
      sec.push_back(rock++);
    }
  }
  for (long long int i = 0; i < sec.size(); i++) {
    printf("%d", sec[i]);
    printf("\n");
  }
  for (long long int i = 0; i < fir.size(); i++) {
    printf("%d", fir[fir.size() - 1 - i]);
    printf("\n");
  }
  return 0;
}
