#include <bits/stdc++.h>
using namespace std;
struct X {
  X *n;
  int v;
};
char in[1000005];
int main() {
  X *rt, *cur, *tmp;
  int len;
  rt = new X();
  rt->v = 0;
  rt->n = 0;
  scanf("%s", in);
  len = strlen(in);
  cur = rt;
  for (int i = 0; i < len; ++i) {
    tmp = new X();
    tmp->n = cur->n;
    tmp->v = i + 1;
    cur->n = tmp;
    if (in[i] == 'r') cur = tmp;
  }
  cur = rt;
  for (int i = 0; i < len; ++i) {
    cur = cur->n;
    printf("%d\n", cur->v);
  }
  return 0;
}
