#include <bits/stdc++.h>
using namespace std;
char cs[1000005];
int a[2000005];
signed main() {
  if (!false) {
    cin.tie(0);
    ios::sync_with_stdio(0);
  }
  scanf("%s", cs);
  string S(cs);
  int l = 1e6 + 1, r = 1e6;
  for (int _i = (0), i = ((S.size()) - 1); i >= _i; i--) {
    if (S[i] == 'r')
      a[--l] = i + 1;
    else
      a[++r] = i + 1;
  }
  for (int _i = (r), i = (l); i <= _i; i++) printf("%d\n", a[i]);
  return 0;
}
