#include <bits/stdc++.h>
using namespace std;
char a[1000010];
int main() {
  map<float, int> p;
  gets(a);
  int loop = strlen(a);
  int re[loop];
  int suru = 0, ses = loop - 1;
  for (int i = 0; i < loop; i++) {
    if (a[i] == 'l') {
      re[ses] = i + 1;
      ses -= 1;
    } else {
      re[suru] = i + 1;
      suru += 1;
    }
  }
  for (int i = 0; i < loop; i++) {
    printf("%d\n", re[i]);
  }
  return 0;
}
