#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[1000005];
  gets(s);
  int l = strlen(s);
  int *arr = (int *)malloc(sizeof(int) * l);
  int p = 0, q = 0;
  for (int i = 0; s[i]; i++) {
    if (s[i] == 'l') {
      arr[l - 1 - p] = i + 1;
      p++;
    } else {
      arr[q] = i + 1;
      q++;
    }
  }
  for (int i = 0; i < l; i++) printf("%d\n", arr[i]);
  return 0;
}
