#include <bits/stdc++.h>
typedef long long LL;
const double INF = 1e100;
const int oo = ~0u >> 2;
const double pi = acos(-1.0);
const double EPS = 1e-8;
const int MAXN = 1000033;
char buf[MAXN];
int n;
std::vector<int> a[2];
int main() {
  scanf("%s", buf);
  n = strlen(buf);
  for (int i = (0), __ = (n); i < __; ++i)
    if (buf[i] == 'l') {
      a[0].push_back(i + 1);
    } else
      a[1].push_back(i + 1);
  for (int i = (0), __ = (a[1].size()); i < __; ++i) printf("%d\n", a[1][i]);
  for (int i = (int(a[0].size()) - 1), __ = (0); i >= __; --i)
    printf("%d\n", a[0][i]);
  return 0;
}
