#include <bits/stdc++.h>
using namespace std;
const int MAX = 1000000 + 10;
int n;
char str[MAX];
list<int> first;
int main() {
  int i, now = 1;
  scanf("%s", str);
  n = strlen(str);
  first.push_back(now = 1);
  list<int>::iterator it = first.begin();
  for (i = 0; i < n - 1; ++i) {
    ++now;
    if (str[i] == 'l')
      it = first.insert(it, now);
    else
      it = first.insert(++it, now);
  }
  for (it = first.begin(); it != first.end(); ++it) printf("%d\n", *it);
  return 0;
}
