#include <bits/stdc++.h>
using namespace std;
const int maxn = 1001 * 1000;
int a[maxn];
char s[maxn];
int main() {
  ios::sync_with_stdio(false);
  int n, i, j = 0;
  int l = 0, r;
  scanf("%s", s);
  n = strlen(s);
  r = n;
  for ((i) = 0; (i) < (n); (i)++)
    if (s[i] == 'l')
      a[--r] = i + 1;
    else
      a[l++] = i + 1;
  for ((i) = 0; (i) < (n); (i)++) printf("%d\n", a[i]);
  return 0;
}
