#include <bits/stdc++.h>
using namespace std;
const int N = 1000500;
int l, r, ans[N];
char s[N];
int main() {
  gets(s);
  int len = strlen(s);
  r = len - 1;
  for (int i = 0; i < len; ++i)
    if (s[i] == 'l')
      ans[r--] = i + 1;
    else
      ans[l++] = i + 1;
  for (int i = 0; i < len; ++i) printf("%d\n", ans[i]);
  return 0;
}
