#include <bits/stdc++.h>
using namespace std;
int pos[1000005];
char s[1000005];
int main() {
  while (~scanf("%s", s)) {
    int n = strlen(s);
    int sp = 0, ep = n - 1;
    for (int i = 0; i < n; ++i) {
      if (s[i] == 'l') {
        pos[ep] = i + 1;
        ep--;
      } else {
        pos[sp] = i + 1;
        sp++;
      }
    }
    for (int j = 0; j < n; ++j) {
      printf("%d\n", pos[j]);
    }
  }
  return 0;
}
